summaryrefslogtreecommitdiff
path: root/src/decode_frame.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/decode_frame.c')
-rw-r--r--src/decode_frame.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/decode_frame.c b/src/decode_frame.c
index 717e81c..045207b 100644
--- a/src/decode_frame.c
+++ b/src/decode_frame.c
@@ -174,7 +174,8 @@ main(int argc, char *argv[])
av_free(frame_rgb);
av_free(frame);
avcodec_close(codec_ctx);
- avformat_close_input(&fmt_ctx);
+ av_close_input_file(&fmt_ctx);
+// avformat_close_input(&fmt_ctx);
return 0;
}