I am trying to use libavcodec and libavutil to read the channel layout from two
different AAC stream, which are signalled according to the ARIB STD-B32 Part 2
. The first stream has the channel configuration set to 2 ("2ch"), which
show up just fine as "stereo" when calling av_bprint_channel_layout().
However, the other stream has the channel configuration set to 0 and uses the
program config element to set up a "dual mono" stream by giving me a front left
and front right channel encoded as two different single channel elements (this
is from my trace printouts added to aacdec_template.c):
FFmpeg tells me "stereo" for av_bprint_channel_layout() for this mapping as
well, which I can understand why. Is there any API I can call to check the
number of input channels (to return 1 for the CPE stereo and 2 for the SCE
dual-mono), to distinguish between the two?