[FFmpeg-cvslog] mux: Do not leave stale side data pointers in ff_interleave_add_packet()
Michael Niedermayer
git at videolan.org
Tue May 19 21:17:13 CEST 2015
ffmpeg | branch: release/2.4 | Michael Niedermayer <michaelni at gmx.at> | Fri May 1 23:55:42 2015 +0100| [386e80610de282c92ad5897683ccaf2675766ac5] | committer: Vittorio Giovara
mux: Do not leave stale side data pointers in ff_interleave_add_packet()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
Signed-off-by: Vittorio Giovara <vittorio.giovara at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=386e80610de282c92ad5897683ccaf2675766ac5
---
libavformat/mux.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavformat/mux.c b/libavformat/mux.c
index df4f57a..d4492d1 100644
--- a/libavformat/mux.c
+++ b/libavformat/mux.c
@@ -400,6 +400,8 @@ FF_DISABLE_DEPRECATION_WARNINGS
FF_ENABLE_DEPRECATION_WARNINGS
#endif
pkt->buf = NULL;
+ pkt->side_data = NULL;
+ pkt->side_data_elems = 0;
// Duplicate the packet if it uses non-allocated memory
if ((ret = av_dup_packet(&this_pktl->pkt)) < 0) {
av_free(this_pktl);
More information about the ffmpeg-cvslog
mailing list