1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +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;
av_free(st->codec->palctrl);
if (ast->sub_ctx) {
av_freep(ast->sub_ctx->pb);
av_freep(&ast->sub_ctx->pb);
av_close_input_stream(ast->sub_ctx);
}
av_free(ast->sub_buffer);