summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-11-14 12:08:01 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-11-14 12:08:01 +0100
commit27a41f526f75fdf4ff47b2c969a5d252bac30cf3 (patch)
treeba6c1e0f4ee872194e31999e13f664d7ce6a7640
parentce0046e75118767ffc0e87495659a6c8145e92d5 (diff)
downloadadvtime-27a41f526f75fdf4ff47b2c969a5d252bac30cf3.tar.gz
advtime-27a41f526f75fdf4ff47b2c969a5d252bac30cf3.tar.bz2
advtime-27a41f526f75fdf4ff47b2c969a5d252bac30cf3.zip
Fix incorrect usage of av_close_input_file
-rw-r--r--src/decode_frame.c2
-rw-r--r--src/video_decode.c2
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);
}