aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/avidec.c
diff options
context:
space:
mode:
authorJai Menon <jmenon86@gmail.com>2010-07-17 05:08:01 +0000
committerJai Menon <jmenon86@gmail.com>2010-07-17 05:08:01 +0000
commita58e6ceae087bf24e10d4cfa88c05d9377287539 (patch)
treee629a3b3cff3e8c568e9b61cfa4b37a2c9a9c4a8 /libavformat/avidec.c
parent57fe80fe886291eec84ab41aa4b0e07901f6b6a5 (diff)
downloadffmpeg-a58e6ceae087bf24e10d4cfa88c05d9377287539.tar.gz
avidec : Free codec context before initializing the chained DV demuxer.
Originally committed as revision 24279 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avidec.c')
-rw-r--r--libavformat/avidec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 78ccc2639c..058acd5263 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -397,6 +397,7 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
ast = s->streams[0]->priv_data;
av_freep(&s->streams[0]->codec->extradata);
+ av_freep(&s->streams[0]->codec);
av_freep(&s->streams[0]);
s->nb_streams = 0;
if (CONFIG_DV_DEMUXER) {