ffmpeg: bitstream filters require split out side data
[ffmpeg.git] / 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,