Commit 3c1f9b97 authored by Ilkka Ollakka's avatar 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).
parent 513fab81
......@@ -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 );
......
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