From efb30a734e08f5d0c2d05462aecb95669ed2593c Mon Sep 17 00:00:00 2001 From: Timo Hirvonen Date: Sun, 11 May 2008 19:23:04 +0300 Subject: [PATCH] Fix the fix to the ffmpeg configure check --- configure | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/configure b/configure index 07e6ee1..7f1a031 100755 --- a/configure +++ b/configure @@ -228,12 +228,15 @@ check_aac() check_ffmpeg() { - pkg_config FFMPEG "libavformat" - if check_header 'ffmpeg/avcodec.h' + if pkg_config FFMPEG "libavformat" then - FFMPEG_CFLAGS="$FFMPEG_CFLAGS -DHAVE_FFMPEG_AVCODEC_H" + if check_header 'ffmpeg/avcodec.h' + then + FFMPEG_CFLAGS="$FFMPEG_CFLAGS -DHAVE_FFMPEG_AVCODEC_H" + fi + return 0 fi - return $? + return 1 } # defaults -- 2.11.4.GIT