Add a check for libavutil/pixfmt.h as a low-brow check for FFMPEG r18129+, this

needs to be fixed to check exact versions of the library.  For now this should
work.

Originally committed to SVN as r2778.
This commit is contained in:
Amar Takhar 2009-04-11 08:13:09 +00:00
parent d642bb37ab
commit 26e427e838
1 changed files with 6 additions and 2 deletions

View File

@ -661,10 +661,14 @@ else
with_provider_ffmpegsource="no"
fi
AM_CONDITIONAL([HAVE_PROVIDER_FFMPEGSOURCE], [test "$with_provider_ffmpegsource" = "yes"])
AC_SUBST(LIBPOSTPROC_LIBS)
AC_SUBST(LIBPOSTPROC_CFLAGS)
# XXX: Fix this to be a proper check.
AC_CHECK_HEADER([libavutil/pixfmt.h],,[AC_MSG_WARN([FFmpegSource2 requires FFMPEG r18129 or newer]); with_provider_ffmpegsource="no"])
AM_CONDITIONAL([HAVE_PROVIDER_FFMPEGSOURCE], [test "$with_provider_ffmpegsource" = "yes"])
###################
@ -1345,7 +1349,7 @@ A/V Support
Video Providers
FFMPEG: $with_provider_ffmpeg $ffmpeg_provider_disabled
FFmpegSource: $with_provider_ffmpegsource $ffmpegsource_provider_disabled
FFmpegSource: $with_provider_ffmpegsource $ffmpegsource_provider_disabled (requires FFMPEG r18129 or newer)
Subtitle Providers:
CSRI (ASA): $with_csri $csri_disabled $csri_default