avformat/mux: Update sidedata in ff_write_chained()
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 20 Aug 2015 01:35:10 +0000 (03:35 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 20 Aug 2015 01:42:04 +0000 (03:42 +0200)
Fixes Ticket4777

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mux.c

index 909617f..84c6d24 100644 (file)
@@ -1043,6 +1043,8 @@ int ff_write_chained(AVFormatContext *dst, int dst_stream, AVPacket *pkt,
     if (interleave) ret = av_interleaved_write_frame(dst, &local_pkt);
     else            ret = av_write_frame(dst, &local_pkt);
     pkt->buf = local_pkt.buf;
+    pkt->side_data       = local_pkt.side_data;
+    pkt->side_data_elems = local_pkt.side_data_elems;
     pkt->destruct = local_pkt.destruct;
     return ret;
 }