[Ffmpeg-devel] I'm giving up

Panagiotis Issaris takis.issaris
Wed Dec 6 16:47:09 CET 2006


Hi Benjamin,

On Wed, 2006-12-06 at 16:32 +0100, Benjamin Larsson wrote:
> >>>> [...]    
> >> If another id isn't added we can't use both x264 and the native encoder
> >> in the same binary.
> >>
> >>     
> >
> > Ah, can this behaviour be changed easily ?
> >   
> 
> I don't think it will be 2 lines of code for that.
> 
> > IMHO we should not add a new id, but disable native one if x264 is chosen
> A configure option is easy to do though.
Something like this? Not very generic, but it seems to work.

diff --git a/configure b/configure
index a4607a4..5bd09f2 100755
--- a/configure
+++ b/configure
@@ -1495,6 +1495,10 @@ EOF
     restore_flags
 fi
 
+# Disable native H.264 encoder if x264 is chosen
+if enabled x264; then
+    ENCODER_LIST=`echo $ENCODER_LIST|sed 's/h264_encoder //'`
+fi
 
 # test for lrintf in math.h
 check_exec <<EOF && lrintf=yes || lrintf=no

With friendly regards,
Takis

-- 
vCard: http://www.issaris.org/pi.vcf
Public key: http://www.issaris.org/pi.key





More information about the ffmpeg-devel mailing list