changeset 6267:e3af32f5ee3e libavformat

avidec : Free codec context before initializing the chained DV demuxer.
author jai_menon
date Sat, 17 Jul 2010 05:08:01 +0000
parents f7a3c5ea90f8
children 68c7733519ca
files avidec.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/avidec.c	Fri Jul 16 23:31:30 2010 +0000
+++ b/avidec.c	Sat Jul 17 05:08:01 2010 +0000
@@ -397,6 +397,7 @@
 
                 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) {