Skip to content

Commit

Permalink
fix: bad size when encrypting segments
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbee committed Nov 5, 2024
1 parent fa1acfa commit d8876b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/livesim2/app/livesegment.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func genLiveSegment(vodFS fs.FS, a *asset, cfg *ResponseConfig, segmentPart stri
tfdtSizeDiff := int32(newTfdtSize) - int32(oldTfdtSize)
if tfdtSizeDiff != 0 {
traf.Trun.DataOffset += tfdtSizeDiff
frag.Mdat.StartPos += uint64(tfdtSizeDiff)
}
if traf.Saio != nil {
if saioAfterTfdt(traf) {
Expand Down

0 comments on commit d8876b5

Please sign in to comment.