diff options
Diffstat (limited to 'src/video_decode.c')
-rw-r--r-- | src/video_decode.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/video_decode.c b/src/video_decode.c index f9e8859..1d17afe 100644 --- a/src/video_decode.c +++ b/src/video_decode.c @@ -82,8 +82,11 @@ video_decode_uninit(struct video_decode **_vd) *_vd = NULL; avcodec_close(vd->codec_ctx); +#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53, 17, 0) + avformat_close_input(&vd->fmt_ctx); +#else av_close_input_file(vd->fmt_ctx); -// avformat_close_input(&vd->fmt_ctx); +#endif free(vd); } |