mpegtspacketizer: Fix ts_to_offset beyond last observed PCR
The requested TS might be beyond the last observed PCR. In order to calculate a coherent offset, we need to use the last and previous-to-last groups. https://bugzilla.gnome.org/show_bug.cgi?id=721035
This commit is contained in:
parent
cd3c3ebf01
commit
c229a87ac3
@ -2235,6 +2235,11 @@ mpegts_packetizer_ts_to_offset (MpegTSPacketizer2 * packetizer,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (tmp->next == NULL) {
|
||||||
|
GST_DEBUG ("pcr is beyond last group");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
prevgroup = nextgroup;
|
prevgroup = nextgroup;
|
||||||
|
|
||||||
/* Maybe it's in this group */
|
/* Maybe it's in this group */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user