# HG changeset patch # User jai_menon # Date 1240336372 0 # Node ID b687da895962c4067ed78b71efb55193f980c3c5 # Parent b9216a975c7f5634c94c69dc3e57c1166f444142 Read extended channel configuration when extended AOT is BSAC. diff -r b9216a975c7f -r b687da895962 mpeg4audio.c --- a/mpeg4audio.c Tue Apr 21 17:37:03 2009 +0000 +++ b/mpeg4audio.c Tue Apr 21 17:52:52 2009 +0000 @@ -61,6 +61,8 @@ c->sbr = 1; c->ext_sample_rate = get_sample_rate(&gb, &c->ext_sampling_index); c->object_type = get_object_type(&gb); + if (c->object_type == AOT_ER_BSAC) + c->ext_chan_config = get_bits(&gb, 4); } else { c->ext_object_type = 0; c->ext_sample_rate = 0; diff -r b9216a975c7f -r b687da895962 mpeg4audio.h --- a/mpeg4audio.h Tue Apr 21 17:37:03 2009 +0000 +++ b/mpeg4audio.h Tue Apr 21 17:52:52 2009 +0000 @@ -33,6 +33,7 @@ int ext_object_type; int ext_sampling_index; int ext_sample_rate; + int ext_chan_config; } MPEG4AudioConfig; extern const int ff_mpeg4audio_sample_rates[16];