[vlc-devel] commit: default aac-profile to low, seems that faac encoder has issues with other (Ilkka Ollakka )

git version control git at videolan.org
Mon Aug 11 18:15:59 CEST 2008


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Mon Aug 11 19:14:29 2008 +0300| [3c1f9b9752e80c9d8c21ce2f36ba55c08e951ce0] | committer: Ilkka Ollakka 

default aac-profile to low, seems that faac encoder has issues with other
profiles. Should fix ticket #1583 (atleast fixed to me, please review).

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3c1f9b9752e80c9d8c21ce2f36ba55c08e951ce0
---

 modules/codec/avcodec/encoder.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/codec/avcodec/encoder.c b/modules/codec/avcodec/encoder.c
index 95eef57..4e7a3ba 100644
--- a/modules/codec/avcodec/encoder.c
+++ b/modules/codec/avcodec/encoder.c
@@ -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 );




More information about the vlc-devel mailing list