default aac-profile to low, seems that faac encoder has issues with other
authorIlkka Ollakka <ileoo@videolan.org>
Mon, 11 Aug 2008 16:14:29 +0000 (19:14 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Mon, 11 Aug 2008 16:15:54 +0000 (19:15 +0300)
profiles. Should fix ticket #1583 (atleast fixed to me, please review).

modules/codec/avcodec/encoder.c

index 95eef57..4e7a3ba 100644 (file)
@@ -378,7 +378,7 @@ int OpenEncoder( vlc_object_t *p_this )
 
 #if LIBAVCODEC_VERSION_INT >= ((51<<16)+(40<<8)+4)
     var_Get( p_enc, ENC_CFG_PREFIX "aac-profile", &val );
-    p_sys->i_aac_profile = FF_PROFILE_UNKNOWN;
+    p_sys->i_aac_profile = FF_PROFILE_AAC_LOW;
     if( val.psz_string && *val.psz_string )
     {
         if( !strncmp( val.psz_string, "main", 4 ) )
@@ -393,8 +393,8 @@ int OpenEncoder( vlc_object_t *p_this )
             p_sys->i_aac_profile = FF_PROFILE_AAC_LTP;
         else
         {
-            msg_Warn( p_enc, "unknown AAC profile requested" );
-            p_sys->i_aac_profile = FF_PROFILE_UNKNOWN;
+            msg_Warn( p_enc, "unknown AAC profile requested, setting it to low" );
+            p_sys->i_aac_profile = FF_PROFILE_AAC_LOW;
         }
     }
     free( val.psz_string );