Commit a58e6cea authored by Jai Menon's avatar Jai Menon
Browse files

avidec : Free codec context before initializing the chained DV demuxer.

Originally committed as revision 24279 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 57fe80fe
...@@ -397,6 +397,7 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap) ...@@ -397,6 +397,7 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
ast = s->streams[0]->priv_data; ast = s->streams[0]->priv_data;
av_freep(&s->streams[0]->codec->extradata); av_freep(&s->streams[0]->codec->extradata);
av_freep(&s->streams[0]->codec);
av_freep(&s->streams[0]); av_freep(&s->streams[0]);
s->nb_streams = 0; s->nb_streams = 0;
if (CONFIG_DV_DEMUXER) { if (CONFIG_DV_DEMUXER) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment