Commit 4a34487a authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

get back to single-version ffmpeg wrapper (no more v2); make sure the library…

get back to single-version ffmpeg wrapper (no more v2); make sure the library builds and the tests pass on Ubuntu 10.04 that includes pretty old version of ffmpeg
parent 2c887916
#include "cap_ffmpeg_impl_v2.hpp" #include "cap_ffmpeg_impl.hpp"
...@@ -369,7 +369,7 @@ if(UNIX) ...@@ -369,7 +369,7 @@ if(UNIX)
endif() endif()
endif() endif()
if(HAVE_FFMPEG_CODEC AND HAVE_FFMPEG_FORMAT AND HAVE_FFMPEG_UTIL) if(HAVE_FFMPEG_CODEC AND HAVE_FFMPEG_FORMAT AND HAVE_FFMPEG_UTIL)
if(HAVE_FFMPEG_SWSCALE OR NOT HAVE_GENTOO_FFMPEG) if(HAVE_FFMPEG_SWSCALE)
set(HAVE_FFMPEG 1) set(HAVE_FFMPEG 1)
endif() endif()
endif() endif()
...@@ -382,12 +382,6 @@ if(UNIX) ...@@ -382,12 +382,6 @@ if(UNIX)
endif() endif()
endif() endif()
if(HAVE_FFMPEG)
if(NOT ALIASOF_libavformat_VERSION VERSION_LESS "52.111.0")
set(NEW_FFMPEG ON)
endif()
endif()
if(WITH_1394) if(WITH_1394)
CHECK_MODULE(libdc1394-2 HAVE_DC1394_2) CHECK_MODULE(libdc1394-2 HAVE_DC1394_2)
if(NOT HAVE_DC1394_2) if(NOT HAVE_DC1394_2)
...@@ -455,7 +449,6 @@ if(APPLE AND WITH_FFMPEG) ...@@ -455,7 +449,6 @@ if(APPLE AND WITH_FFMPEG)
"${FFMPEG_LIB_DIR}/libavformat.a" "${FFMPEG_LIB_DIR}/libavutil.a" "${FFMPEG_LIB_DIR}/libavformat.a" "${FFMPEG_LIB_DIR}/libavutil.a"
"${FFMPEG_LIB_DIR}/libswscale.a") "${FFMPEG_LIB_DIR}/libswscale.a")
set(HAVE_FFMPEG 1) set(HAVE_FFMPEG 1)
set(NEW_FFMPEG 1)
endif() endif()
endif() endif()
endif() endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment