From f99e581ae13c2c563f66cb0c31d3dfceeec21af7 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 16 Jan 2014 15:40:37 +0100 Subject: libavformat API usage: use avformat_close_input() instead of av_close_input_file() --- intern/ffmpeg/ffmpeg_compat.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'intern/ffmpeg') diff --git a/intern/ffmpeg/ffmpeg_compat.h b/intern/ffmpeg/ffmpeg_compat.h index 3a130d6d3d6..91db329592d 100644 --- a/intern/ffmpeg/ffmpeg_compat.h +++ b/intern/ffmpeg/ffmpeg_compat.h @@ -388,4 +388,13 @@ int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *pkt, #endif +#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(53, 17, 0) +FFMPEG_INLINE +void avformat_close_input(AVFormatContext **ctx) +{ + av_close_input_file(*ctx); + *ctx = NULL; +} +#endif + #endif -- cgit v1.2.3