From 28629aaed03c8d434b4aa636accfc01719380c1b Mon Sep 17 00:00:00 2001 From: Alam Arias Date: Wed, 3 Oct 2012 10:05:20 -0400 Subject: [PATCH] Revert "build: check libavcodec api version" This reverts commit 06720e2a8dcf986af8ba8f14098afd2af6d0b4b8. --- cmake/FindFFmpeg.cmake | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/cmake/FindFFmpeg.cmake b/cmake/FindFFmpeg.cmake index 3151be906..add7336ed 100644 --- a/cmake/FindFFmpeg.cmake +++ b/cmake/FindFFmpeg.cmake @@ -5,9 +5,6 @@ # FFMPEG_INCLUDE_DIRS - combined include directories # FFMPEG_LIBRARIES - combined libraries to link -set(REQUIRED_AVCODEC_VERSION 0.8) -set(REQUIRED_AVCODEC_API_VERSION 53.25.0) - include(FindPkgConfig) if (PKG_CONFIG_FOUND) @@ -34,14 +31,6 @@ endif() FIND_PACKAGE_HANDLE_STANDARD_ARGS(FFmpeg DEFAULT_MSG AVUTIL_FOUND AVCODEC_FOUND) -if (AVCODEC_VERSION) - if (${AVCODEC_VERSION} VERSION_LESS ${REQUIRED_AVCODEC_API_VERSION}) - message(FATAL_ERROR "libavcodec version >= ${REQUIRED_AVCODEC_VERSION} (API >= ${REQUIRED_AVCODEC_API_VERSION}) is required") - endif() -else() - message("Note: To build libavcodec version >= ${REQUIRED_AVCODEC_VERSION} (API >= ${REQUIRED_AVCODEC_API_VERSION}) is required") -endif() - if(FFMPEG_FOUND) set(FFMPEG_INCLUDE_DIRS ${AVCODEC_INCLUDE_DIR} ${AVUTIL_INCLUDE_DIR}) set(FFMPEG_LIBRARIES ${AVCODEC_LIBRARY} ${AVUTIL_LIBRARY})