From 27a41f526f75fdf4ff47b2c969a5d252bac30cf3 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Wed, 14 Nov 2012 12:08:01 +0100 Subject: Fix incorrect usage of av_close_input_file --- src/decode_frame.c | 2 +- src/video_decode.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/decode_frame.c b/src/decode_frame.c index 045207b..d518311 100644 --- a/src/decode_frame.c +++ b/src/decode_frame.c @@ -174,7 +174,7 @@ main(int argc, char *argv[]) av_free(frame_rgb); av_free(frame); avcodec_close(codec_ctx); - av_close_input_file(&fmt_ctx); + av_close_input_file(fmt_ctx); // avformat_close_input(&fmt_ctx); return 0; diff --git a/src/video_decode.c b/src/video_decode.c index 3b9da04..f9e8859 100644 --- a/src/video_decode.c +++ b/src/video_decode.c @@ -82,7 +82,7 @@ video_decode_uninit(struct video_decode **_vd) *_vd = NULL; avcodec_close(vd->codec_ctx); - av_close_input_file(&vd->fmt_ctx); + av_close_input_file(vd->fmt_ctx); // avformat_close_input(&vd->fmt_ctx); free(vd); } -- cgit