diff options
author | Anton Khirnov <anton@khirnov.net> | 2014-01-16 18:40:37 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-01-28 12:20:22 +0400 |
commit | f99e581ae13c2c563f66cb0c31d3dfceeec21af7 (patch) | |
tree | 8309cd550b5b1fba428879b31c12411b91c4caaf /intern/ffmpeg | |
parent | 414e40c353cad08493e90585cd1261297c96570f (diff) |
libavformat API usage: use avformat_close_input() instead of av_close_input_file()
Diffstat (limited to 'intern/ffmpeg')
-rw-r--r-- | intern/ffmpeg/ffmpeg_compat.h | 9 |
1 files changed, 9 insertions, 0 deletions
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 |