1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-10-04 01:30:05 +02:00

avidec: fix AVStream.info memleak with dv.

Fixes Ticket1334

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-08-07 19:18:53 +02:00
parent 2f6f2f4f73
commit 8993c25695

View File

@ -483,6 +483,7 @@ static int avi_read_header(AVFormatContext *s)
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]->codec);
av_freep(&s->streams[0]->info);
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) {