1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-09-12 18:25:57 +02:00

100l: av_freep() needs the address of the pointer

Originally committed as revision 24613 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Aurelien Jacobs 2010-07-30 23:41:12 +00:00
parent eb96f1698a
commit f138fa78a3

View File

@ -1295,7 +1295,7 @@ static int avi_read_close(AVFormatContext *s)
AVIStream *ast = st->priv_data; AVIStream *ast = st->priv_data;
av_free(st->codec->palctrl); av_free(st->codec->palctrl);
if (ast->sub_ctx) { if (ast->sub_ctx) {
av_freep(ast->sub_ctx->pb); av_freep(&ast->sub_ctx->pb);
av_close_input_stream(ast->sub_ctx); av_close_input_stream(ast->sub_ctx);
} }
av_free(ast->sub_buffer); av_free(ast->sub_buffer);