mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
mpegtsparse: Set delta unit flag on non-random-access buffers
If they don't have the random access flag set, they cannot be decoded independently.
This commit is contained in:
parent
34af8ed66a
commit
2f946274d5
1 changed files with 3 additions and 0 deletions
|
@ -635,6 +635,9 @@ mpegts_parse_push (MpegTSBase * base, MpegTSPacketizerPacket * packet,
|
||||||
GST_OBJECT_UNLOCK (parse);
|
GST_OBJECT_UNLOCK (parse);
|
||||||
|
|
||||||
buf = mpegts_packet_to_buffer (packet);
|
buf = mpegts_packet_to_buffer (packet);
|
||||||
|
if (!(packet->afc_flags & MPEGTS_AFC_RANDOM_ACCESS_FLAG)) {
|
||||||
|
gst_buffer_set_flags (buf, GST_BUFFER_FLAG_DELTA_UNIT);
|
||||||
|
}
|
||||||
ret = mpegts_parse_have_buffer (base, buf);
|
ret = mpegts_parse_have_buffer (base, buf);
|
||||||
|
|
||||||
while (pad && !done) {
|
while (pad && !done) {
|
||||||
|
|
Loading…
Reference in a new issue