Originally committed as revision 24613 to svn://svn.ffmpeg.org/ffmpeg/trunk
| ... | ... |
@@ -1295,7 +1295,7 @@ static int avi_read_close(AVFormatContext *s) |
| 1295 | 1295 |
AVIStream *ast = st->priv_data; |
| 1296 | 1296 |
av_free(st->codec->palctrl); |
| 1297 | 1297 |
if (ast->sub_ctx) {
|
| 1298 |
- av_freep(ast->sub_ctx->pb); |
|
| 1298 |
+ av_freep(&ast->sub_ctx->pb); |
|
| 1299 | 1299 |
av_close_input_stream(ast->sub_ctx); |
| 1300 | 1300 |
} |
| 1301 | 1301 |
av_free(ast->sub_buffer); |