mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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
1 changed files with 5 additions and 0 deletions
|
@ -2235,6 +2235,11 @@ mpegts_packetizer_ts_to_offset (MpegTSPacketizer2 * packetizer,
|
|||
break;
|
||||
}
|
||||
|
||||
if (tmp->next == NULL) {
|
||||
GST_DEBUG ("pcr is beyond last group");
|
||||
break;
|
||||
}
|
||||
|
||||
prevgroup = nextgroup;
|
||||
|
||||
/* Maybe it's in this group */
|
||||
|
|
Loading…
Reference in a new issue