mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 06:03:45 +01:00
workaround redefinition of object_type as prev(object_type)+1
in recent faac cvs (without version number increase) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20086 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
3843657c21
commit
31856891fc
@ -19,7 +19,7 @@ static faacEncConfigurationPtr config = NULL;
|
||||
static int
|
||||
param_bitrate = 128,
|
||||
param_quality = 0,
|
||||
param_object_type = MAIN,
|
||||
param_object_type = 1,
|
||||
param_mpeg = 2,
|
||||
param_tns = 0,
|
||||
param_raw = 0,
|
||||
@ -35,7 +35,7 @@ static unsigned long decoder_specific_len = 0;
|
||||
m_option_t faacopts_conf[] = {
|
||||
{"br", ¶m_bitrate, CONF_TYPE_INT, 0, 0, 0, NULL},
|
||||
{"quality", ¶m_quality, CONF_TYPE_INT, CONF_RANGE, 0, 1000, NULL},
|
||||
{"object", ¶m_object_type, CONF_TYPE_INT, CONF_RANGE, MAIN, LTP, NULL},
|
||||
{"object", ¶m_object_type, CONF_TYPE_INT, CONF_RANGE, 1, 4, NULL},
|
||||
{"mpeg", ¶m_mpeg, CONF_TYPE_INT, CONF_RANGE, 2, 4, NULL},
|
||||
{"tns", ¶m_tns, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
||||
{"cutoff", ¶m_cutoff, CONF_TYPE_INT, 0, 0, 0, NULL},
|
||||
@ -153,6 +153,7 @@ int mpae_init_faac(audio_encoder_t *encoder)
|
||||
}
|
||||
config->outputFormat = param_raw ? 0 : 1; // 1 is ADTS
|
||||
config->aacObjectType = param_object_type;
|
||||
if(MAIN==0) config->aacObjectType--;
|
||||
config->mpegVersion = (param_mpeg == 4 ? MPEG4 : MPEG2);
|
||||
config->useTns = param_tns;
|
||||
config->allowMidside = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user