Mercurial > libavformat.hg
comparison avidec.c @ 3487:2f191d610db9 libavformat
uniformize AVStream->priv_data freeing in av_close_input_stream
author | bcoudurier |
---|---|
date | Fri, 20 Jun 2008 17:22:56 +0000 |
parents | f68fcc8b8e9e |
children | e50efb387048 |
comparison
equal
deleted
inserted
replaced
3486:f68fcc8b8e9e | 3487:2f191d610db9 |
---|---|
1058 int i; | 1058 int i; |
1059 AVIContext *avi = s->priv_data; | 1059 AVIContext *avi = s->priv_data; |
1060 | 1060 |
1061 for(i=0;i<s->nb_streams;i++) { | 1061 for(i=0;i<s->nb_streams;i++) { |
1062 AVStream *st = s->streams[i]; | 1062 AVStream *st = s->streams[i]; |
1063 AVIStream *ast = st->priv_data; | |
1064 av_free(ast); | |
1065 av_free(st->codec->palctrl); | 1063 av_free(st->codec->palctrl); |
1066 } | 1064 } |
1067 | 1065 |
1068 if (avi->dv_demux) | 1066 if (avi->dv_demux) |
1069 av_free(avi->dv_demux); | 1067 av_free(avi->dv_demux); |