Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-01-16 18:40:37 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2014-01-28 12:20:22 +0400
commitf99e581ae13c2c563f66cb0c31d3dfceeec21af7 (patch)
tree8309cd550b5b1fba428879b31c12411b91c4caaf /intern/ffmpeg/ffmpeg_compat.h
parent414e40c353cad08493e90585cd1261297c96570f (diff)
libavformat API usage: use avformat_close_input() instead of av_close_input_file()
Diffstat (limited to 'intern/ffmpeg/ffmpeg_compat.h')
-rw-r--r--intern/ffmpeg/ffmpeg_compat.h9
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