ffmpeg: Fix bsf corrupting merged side data
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 3 Nov 2016 13:55:56 +0000 (14:55 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 17 Nov 2016 11:47:40 +0000 (12:47 +0100)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 11f24e71ff2b598d973fd24bcf950eebaea9b3e6)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
ffmpeg.c

index 3b91710..6b7ce72 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -789,6 +789,7 @@ static void output_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost)
     if (ost->nb_bitstream_filters) {
         int idx;
 
+        av_packet_split_side_data(pkt);
         ret = av_bsf_send_packet(ost->bsf_ctx[0], pkt);
         if (ret < 0)
             goto finish;