]> git.sesse.net Git - vlc/blobdiff - modules/codec/ffmpeg/demux.c
Detect and allow older versions of ffmpeg to be used in conjunction with VLC.
[vlc] / modules / codec / ffmpeg / demux.c
index 5750f4c9eb8a1769880b6c4d0a48634ddab23ca1..becc7b2fab84c4b805fbba653ff10d6537da2cd9 100644 (file)
 #include <vlc_meta.h>
 
 /* ffmpeg header */
-#ifdef HAVE_LIBAVFORMAT_AVFORMAT_H
+#if defined(HAVE_LIBAVFORMAT_AVFORMAT_H)
 #   include <libavformat/avformat.h>
+#elif defined(HAVE_FFMPEG_AVFORMAT_H)
+#   include <ffmpeg/avformat.h>
 #elif defined(HAVE_LIBAVFORMAT_TREE)
 #   include <avformat.h>
 #endif
@@ -47,7 +49,7 @@
 //#define AVFORMAT_DEBUG 1
 
 /* Version checking */
-#if defined(HAVE_LIBAVFORMAT_AVFORMAT_H) || defined(HAVE_LIBAVFORMAT_TREE)
+#if defined(HAVE_LIBSWSCALE_SWSCALE_H) || defined(HAVE_FFMPEG_SWSCALE_H) || defined(HAVE_LIBSWSCALE_TREE)
 
 /*****************************************************************************
  * demux_sys_t: demux descriptor