summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);
}