mirror of
https://github.com/bluenviron/mediamtx
synced 2025-01-12 09:59:57 +00:00
hls client: skip packets received before the 1st packet of the leading
track, for MPEG-TS segments too
This commit is contained in:
parent
7981522bf6
commit
0daf8a17b7
@ -58,10 +58,12 @@ func (t *clientProcessorFMP4Track) processPartTrack(ctx context.Context, pt *fmp
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if pts >= 0 { // silently discard packets prior to the first packet of the leading track
|
||||||
err = t.onEntry(pts, sample.Payload)
|
err = t.onEntry(pts, sample.Payload)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
rawDTS += uint64(sample.Duration)
|
rawDTS += uint64(sample.Duration)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user