Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
397a4949
Commit
397a4949
authored
Oct 28, 2008
by
Ilkka Ollakka
Browse files
remove unneeded if for aac-profile
default aac-profile to low instead of main
parent
761d97ce
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/codec/avcodec/avcodec.c
View file @
397a4949
...
...
@@ -187,7 +187,7 @@ vlc_module_begin();
#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(40<<8)+4)
/* 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
);
#endif
#endif
/* ENABLE_SOUT */
...
...
modules/codec/avcodec/encoder.c
View file @
397a4949
...
...
@@ -390,6 +390,8 @@ 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
);
/* 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
;
if
(
val
.
psz_string
&&
*
val
.
psz_string
)
{
...
...
@@ -594,8 +596,8 @@ int OpenEncoder( vlc_object_t *p_this )
* to the desired value (-R option of the faac frontend)
p_enc->fmt_in.audio.i_rate = p_context->sample_rate;*/
#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(40<<8)+4)
/* Ignore FF_PROFILE_UNKNOWN */
if
(
p_sys
->
i_aac_profile
>=
FF_PROFILE_AAC_MAIN
)
/* vlc should default to low-complexity profile, faac encoder
* has bug and aac audio has issues otherwise atm */
p_context
->
profile
=
p_sys
->
i_aac_profile
;
#endif
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment