mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-10 20:31:10 +00:00
mpegtslivesrc: Don't skip the first MPEG-TS packet
If every buffer contains only a single MPEG-TS packet we would otherwise skip over everything and would never observe a PCR. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1651>
This commit is contained in:
parent
c701aa6f84
commit
4ab8d92f28
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ fn find_pcr(slice: &[u8], imp: &MpegTsLiveSource) -> Result<Option<u64>> {
|
|||
};
|
||||
let mut buffer_pcr = None;
|
||||
|
||||
for chunk in slice[pos + 188..].chunks_exact(188) {
|
||||
for chunk in slice[pos..].chunks_exact(188) {
|
||||
if chunk[0] != 0x47 {
|
||||
gst::error!(CAT, "Lost sync");
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue