From 8ce7ef28d805a82d3451185b0fdbc716f5bbf28f Mon Sep 17 00:00:00 2001 From: rdb Date: Sat, 29 Dec 2012 20:07:58 +0000 Subject: [PATCH] Fallback case for avformat_open_input --- panda/src/movies/ffmpegVirtualFile.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/panda/src/movies/ffmpegVirtualFile.cxx b/panda/src/movies/ffmpegVirtualFile.cxx index 76993c400c..7382496327 100644 --- a/panda/src/movies/ffmpegVirtualFile.cxx +++ b/panda/src/movies/ffmpegVirtualFile.cxx @@ -196,7 +196,11 @@ open_subfile(const SubfileInfo &info) { void FfmpegVirtualFile:: close() { if (_format_context != NULL) { +#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53, 17, 0) avformat_close_input(&_format_context); +#else + av_close_input_file(_format_context); +#endif _format_context = NULL; }