avformat/mux: split side data before internal auto BSF

The bitstream filters do not work with merged in side data

This leaves the input packet split if it is being split.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
Michael Niedermayer 2016-11-04 13:43:45 +01:00 committed by James Almer
parent 6005c7e656
commit 9e58812519
1 changed files with 3 additions and 0 deletions

View File

@ -878,6 +878,9 @@ static int do_packet_auto_bsf(AVFormatContext *s, AVPacket *pkt) {
}
}
if (st->internal->nb_bsfcs)
av_packet_split_side_data(pkt);
for (i = 0; i < st->internal->nb_bsfcs; i++) {
AVBSFContext *ctx = st->internal->bsfcs[i];
if (i > 0) {