avcodec/libopusenc: Fix warning when encoding ambisonics with channel mapping 2
authorFelicia Lim <flim@google.com>
Mon, 30 Jul 2018 19:59:44 +0000 (12:59 -0700)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 28 Nov 2018 23:07:35 +0000 (00:07 +0100)
commit4cd6f08d2005c20a03ccd53a0a6f8a115c5ebe2e
treed3e3fc2685f4c5f0cad8d19faf7379f0dd8b9fd8
parent271a00043ef3116d9561e45fa5773a0d9a0993c2
avcodec/libopusenc: Fix warning when encoding ambisonics with channel mapping 2

Also adds checks on the number of channels.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/libopusenc.c