AAC encoder: fix wrong gain sacalefactor being set
authorClaudio Freire <klaussfreire@gmail.com>
Thu, 26 Nov 2015 06:37:29 +0000 (03:37 -0300)
committerClaudio Freire <klaussfreire@gmail.com>
Thu, 26 Nov 2015 06:37:29 +0000 (03:37 -0300)
commit3b1cab9351f384f3a8d03dec58262d5b66920e30
treee109fd4e9bf750112c5fd639afe42cab5518693b
parentfc36d852ee3413f7cd00ce531ba985925fa7a749
AAC encoder: fix wrong gain sacalefactor being set

In some conditions, where the first band was being zeroed
mainly, the wrong global gain scalefactor would be written
to the stream since it's always taken from the first band
regardless of whether it's been marked as zero or not.

So, always make sure it contians something useful.
libavcodec/aaccoder_twoloop.h