aacparse: Handle Parametric Stereo with HE-AAC(v2)
authorEdward Hervey <edward@centricular.com>
Tue, 4 Apr 2017 15:55:13 +0000 (17:55 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Tue, 4 Apr 2017 16:16:39 +0000 (18:16 +0200)
commit345c56655245ea3ba5bf7a610e40bcba675fb312
tree9ad25c61c96b2e9ada9e1447681e4212b2f716f0
parent6f3737f0c5d63d79e880fd8ba904f3df608d7d40
aacparse: Handle Parametric Stereo with HE-AAC(v2)

According to ISO/IEC:14496-2:2009 , in the case of HE-AACv2 (audioObjecType
29) parametric stereo is used (a single mono track is used and then
transformations are applied to it to provide a stereo output).

We therefore report two channels in the case where there is one reported
in the audioChannelConfiguration.

Fixes the various issues where a demuxer would report two channels, but
then the parser would say there's only one channel, and then the decoder
would output two channels.
gst/audioparsers/gstaacparse.c