avcodec/aacdec_template: add more checks to make sure only 22.2 gets to 22.2
authorJan Ekström <jeebjp@gmail.com>
Tue, 18 Aug 2020 17:49:00 +0000 (20:49 +0300)
committerJan Ekström <jeebjp@gmail.com>
Mon, 24 Aug 2020 21:07:07 +0000 (00:07 +0300)
commitd6f293353c94c7ce200f6e0975ae3de49787f91f
tree59862499e7bf2b6692f4411b2db0130e4f16b62d
parentde1d6aa0a3d4358e9975e0d6fe5c655fd38694fe
avcodec/aacdec_template: add more checks to make sure only 22.2 gets to 22.2

Validates the set channel layout as well as verifies that the received
layout to the function matches the reference layout, so that it matches
the implemented re-ordering logic.

Fixes #8845
libavcodec/aacdec_template.c