diff options
Diffstat (limited to 'src/decode_frame.c')
-rw-r--r-- | src/decode_frame.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/decode_frame.c b/src/decode_frame.c index d518311..b6c1fc1 100644 --- a/src/decode_frame.c +++ b/src/decode_frame.c @@ -174,8 +174,11 @@ main(int argc, char *argv[]) av_free(frame_rgb); av_free(frame); avcodec_close(codec_ctx); +#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53, 17, 0) + avformat_close_input(&fmt_ctx); +#else av_close_input_file(fmt_ctx); -// avformat_close_input(&fmt_ctx); +#endif return 0; } |