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:
Vivia Nikolaidou 2020-01-10 18:00:07 +02:00 committed by GStreamer Merge Bot
parent 34af8ed66a
commit 2f946274d5

View file

@ -635,6 +635,9 @@ mpegts_parse_push (MpegTSBase * base, MpegTSPacketizerPacket * packet,
GST_OBJECT_UNLOCK (parse);
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);
while (pad && !done) {