Mercurial > mplayer.hg
changeset 20080:5aab07acf0b5
workaround redefinition of object_type as prev(object_type)+1
in recent faac cvs (without version number increase)
author | nicodvb |
---|---|
date | Thu, 05 Oct 2006 23:12:27 +0000 |
parents | 171e9afa4554 |
children | 61cb748ff190 |
files | libmpcodecs/ae_faac.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/ae_faac.c Thu Oct 05 22:29:59 2006 +0000 +++ b/libmpcodecs/ae_faac.c Thu Oct 05 23:12:27 2006 +0000 @@ -19,7 +19,7 @@ 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 @@ 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 @@ } 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;