[FFmpeg-cvslog] avformat/mux: Dont leave stale side data pointers in ff_interleave_add_packet()

Michael Niedermayer git at videolan.org
Mon Jun 2 14:57:39 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Jun  2 14:48:22 2014 +0200| [bfb3ed1a9d5dafdc185080fdd88d02ff7221d30a] | committer: Michael Niedermayer

avformat/mux: Dont leave stale side data pointers in ff_interleave_add_packet()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

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

diff --git a/libavformat/mux.c b/libavformat/mux.c
index 4edb652..57044f3 100644
--- a/libavformat/mux.c
+++ b/libavformat/mux.c
@@ -666,6 +666,8 @@ FF_DISABLE_DEPRECATION_WARNINGS
 FF_ENABLE_DEPRECATION_WARNINGS
 #endif
     pkt->buf       = NULL;
+    pkt->side_data = NULL;
+    pkt->side_data_elems = 0;
     if ((pkt->flags & AV_PKT_FLAG_UNCODED_FRAME)) {
         av_assert0(pkt->size == UNCODED_FRAME_PACKET_SIZE);
         av_assert0(((AVFrame *)pkt->data)->buf);



More information about the ffmpeg-cvslog mailing list