mpegtsmux: Set adaptation flag when appropriate

Specifically, when there's stuff to go into the adaptation
header.
This commit is contained in:
David Schleef 2010-12-05 03:29:42 -08:00
parent ea113a79aa
commit 94f6f34ace

View file

@ -378,6 +378,7 @@ tsmux_stream_initialize_pes_packet (TsMuxStream * stream)
TsMuxStreamBuffer *buf = (TsMuxStreamBuffer *) (stream->buffers->data);
if (buf->random_access) {
stream->pi.flags |= TSMUX_PACKET_FLAG_RANDOM_ACCESS;
stream->pi.flags |= TSMUX_PACKET_FLAG_ADAPTATION;
}
}