Commit fe3896a9 authored by Ilkka Ollakka's avatar Ilkka Ollakka

remove unneeded if for aac-profile

default aac-profile to low instead of main
(cherry picked from commit 397a4949)
parent 218b97eb
...@@ -188,7 +188,7 @@ vlc_module_begin(); ...@@ -188,7 +188,7 @@ vlc_module_begin();
#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(40<<8)+4) #if LIBAVCODEC_VERSION_INT >= ((51<<16)+(40<<8)+4)
/* Audio AAC encoder profile */ /* Audio AAC encoder profile */
add_string( ENC_CFG_PREFIX "aac-profile", "main", NULL, add_string( ENC_CFG_PREFIX "aac-profile", "low", NULL,
ENC_PROFILE_TEXT, ENC_PROFILE_LONGTEXT, true ); ENC_PROFILE_TEXT, ENC_PROFILE_LONGTEXT, true );
#endif #endif
#endif /* ENABLE_SOUT */ #endif /* ENABLE_SOUT */
......
...@@ -392,6 +392,8 @@ int OpenEncoder( vlc_object_t *p_this ) ...@@ -392,6 +392,8 @@ int OpenEncoder( vlc_object_t *p_this )
#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(40<<8)+4) #if LIBAVCODEC_VERSION_INT >= ((51<<16)+(40<<8)+4)
var_Get( p_enc, ENC_CFG_PREFIX "aac-profile", &val ); var_Get( p_enc, ENC_CFG_PREFIX "aac-profile", &val );
/* ffmpeg uses faac encoder atm, and it has issues with
* other than low-complexity profile, so default to that */
p_sys->i_aac_profile = FF_PROFILE_AAC_LOW; p_sys->i_aac_profile = FF_PROFILE_AAC_LOW;
if( val.psz_string && *val.psz_string ) if( val.psz_string && *val.psz_string )
{ {
...@@ -596,8 +598,8 @@ int OpenEncoder( vlc_object_t *p_this ) ...@@ -596,8 +598,8 @@ int OpenEncoder( vlc_object_t *p_this )
* to the desired value (-R option of the faac frontend) * to the desired value (-R option of the faac frontend)
p_enc->fmt_in.audio.i_rate = p_context->sample_rate;*/ p_enc->fmt_in.audio.i_rate = p_context->sample_rate;*/
#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(40<<8)+4) #if LIBAVCODEC_VERSION_INT >= ((51<<16)+(40<<8)+4)
/* Ignore FF_PROFILE_UNKNOWN */ /* vlc should default to low-complexity profile, faac encoder
if( p_sys->i_aac_profile >= FF_PROFILE_AAC_MAIN ) * has bug and aac audio has issues otherwise atm */
p_context->profile = p_sys->i_aac_profile; p_context->profile = p_sys->i_aac_profile;
#endif #endif
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment