[FFmpeg-cvslog] avidec: fix AVStream.info memleak with dv.
Michael Niedermayer
git at videolan.org
Tue Aug 7 19:52:13 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Aug 7 19:18:53 2012 +0200| [8993c256950067f29bc750140514ef6a1f5fd05d] | committer: Michael Niedermayer
avidec: fix AVStream.info memleak with dv.
Fixes Ticket1334
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8993c256950067f29bc750140514ef6a1f5fd05d
---
libavformat/avidec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index cc716a2..0144b65 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -483,6 +483,7 @@ static int avi_read_header(AVFormatContext *s)
ast = s->streams[0]->priv_data;
av_freep(&s->streams[0]->codec->extradata);
av_freep(&s->streams[0]->codec);
+ av_freep(&s->streams[0]->info);
av_freep(&s->streams[0]);
s->nb_streams = 0;
if (CONFIG_DV_DEMUXER) {
More information about the ffmpeg-cvslog
mailing list