From 557257f4b879de01b3e2f359bbeb37055d0029af Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 31 Dec 2012 19:26:23 +0000 Subject: [PATCH] support even older versions of ffmpeg --- panda/src/movies/ffmpegVirtualFile.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/panda/src/movies/ffmpegVirtualFile.cxx b/panda/src/movies/ffmpegVirtualFile.cxx index 7382496327..0639443c5e 100644 --- a/panda/src/movies/ffmpegVirtualFile.cxx +++ b/panda/src/movies/ffmpegVirtualFile.cxx @@ -119,8 +119,12 @@ open_vfs(const Filename &filename) { string url = strm.str(); // Now we can open the stream. - int result = + int result = +#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53, 2, 0) avformat_open_input(&_format_context, url.c_str(), NULL, NULL); +#else + av_open_input_file(&_format_context, url.c_str(), NULL, 0, NULL); +#endif if (result < 0) { _format_context = NULL; close();