aacenc: Fix erasure of surround channels
authorClaudio Freire <klaussfreire@gmail.com>
Sun, 12 May 2013 07:38:40 +0000 (09:38 +0200)
committerMartin Storsjö <martin@martin.st>
Tue, 14 May 2013 09:42:05 +0000 (12:42 +0300)
commit8bbdd20a293eab2cfac9f332613ead02a4e3c0c2
treef7d0abdeb41ac03362058a30d2aca6bc2ec4bd82
parentf4d0a63b5b5c682c18df3bba730f97a9067408ba
aacenc: Fix erasure of surround channels

This was due to a miscomputation of s->cur_channel, which led to
psy-based encoders using the psy coefficients for the wrong channel.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavcodec/aacenc.c