]> git.sesse.net Git - vlc/blobdiff - extras/buildsystem/cmake/include/config.cmake
Detect and allow older versions of ffmpeg to be used in conjunction with VLC.
[vlc] / extras / buildsystem / cmake / include / config.cmake
index 37cbfeca0bb498b88721a9ac59469f7351729c4c..e458c6fe27d88cb718e2a99af998195fb556e8e7 100644 (file)
@@ -451,9 +451,9 @@ if(FFmpeg_FOUND)
   set( CMAKE_REQUIRED_FLAGS_saved ${CMAKE_REQUIRED_FLAGS} )
   set( CMAKE_REQUIRED_FLAGS ${FFmpeg_CFLAGS} )
 
-  vlc_check_include_files (libavcodec/avcodec.h)
-  vlc_check_include_files (libavutil/avutil.h)
-  vlc_check_include_files (libswscale/swscale.h)
+  vlc_check_include_files (libavcodec/avcodec.h ffmpeg/avcodec.h)
+  vlc_check_include_files (libavutil/avutil.h ffmpeg/avutil.h)
+  vlc_check_include_files (libswscale/swscale.h ffmpeg/swscale.h)
   
   check_include_files ("stdint.h;postproc/postprocess.h" HAVE_POSTPROC_POSTPROCESS_H)
   vlc_enable_modules(ffmpeg)