ffmpeg: bitstream filters require split out side data
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 15 May 2014 20:35:40 +0000 (22:35 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 15 May 2014 20:41:12 +0000 (22:41 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg.c

index 9792281..10311ef 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -597,6 +597,9 @@ static void write_frame(AVFormatContext *s, AVPacket *pkt, OutputStream *ost)
         ost->frame_number++;
     }
 
+    if (bsfc)
+        av_packet_split_side_data(pkt);
+
     while (bsfc) {
         AVPacket new_pkt = *pkt;
         int a = av_bitstream_filter_filter(bsfc, avctx, NULL,