diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-01-04 19:53:44 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-01-04 19:53:44 +0000 |
commit | 3144b152a6e01641108363614684754fd1c30aea (patch) | |
tree | 4fcc7dc10acbb96ebc0b9a0ebff231e741099b88 | |
parent | ac548c5d1d130608f4efc606f5997fb53512e5a4 (diff) | |
download | ffmpeg-3144b152a6e01641108363614684754fd1c30aea.tar.gz |
10l
Originally committed as revision 2666 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/avidec.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c index 2a6ef97be8..551e906cd4 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -659,8 +659,10 @@ static int avi_read_close(AVFormatContext *s) for(i=0;i<s->nb_streams;i++) { AVStream *st = s->streams[i]; AVIStream *ast = st->priv_data; - av_free(ast->index_entries); - av_free(ast); + if(ast){ + av_free(ast->index_entries); + av_free(ast); + } av_free(st->codec.extradata); av_free(st->codec.palctrl); } |