[FFmpeg-cvslog] avformat/mux: Update sidedata in ff_write_chained()

Michael Niedermayer git at videolan.org
Thu Nov 26 17:54:52 CET 2015


ffmpeg | branch: release/2.5 | Michael Niedermayer <michael at niedermayer.cc> | Thu Aug 20 03:35:10 2015 +0200| [905853cd402e1c32e634ea6f7ddfcaf59972515d] | committer: Michael Niedermayer

avformat/mux: Update sidedata in ff_write_chained()

Fixes Ticket4777

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit db91e0edb63afc682ae709f73e3732a4c832944d)

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=905853cd402e1c32e634ea6f7ddfcaf59972515d
---

 libavformat/mux.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/mux.c b/libavformat/mux.c
index 023832c..a016573 100644
--- a/libavformat/mux.c
+++ b/libavformat/mux.c
@@ -998,6 +998,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;
 }



More information about the ffmpeg-cvslog mailing list