--- /home/slack/VLC_SVN/modules/codec/ffmpeg/encoder.c	2007-02-13 01:29:33.000000000 +1100
+++ modules/codec/ffmpeg/encoder.c	2007-02-21 17:54:10.000000000 +1100
@@ -231,7 +231,11 @@
     /* Initialization must be done before avcodec_find_encoder() */
     E_(InitLibavcodec)(p_this);
 
-    p_codec = avcodec_find_encoder( i_codec_id );
+    /* Disable libavcodec flac encoder it doesn't work with vlc */
+    if( i_codec_id == 86031 )
+        p_codec = NULL;
+    else
+        p_codec = avcodec_find_encoder( i_codec_id );
     if( !p_codec )
     {
         msg_Err( p_enc, "cannot find encoder %s", psz_namecodec );
