dca: Validate the channel map
authorLuca Barbato <lu_zero@gentoo.org>
Tue, 14 Mar 2017 09:15:29 +0000 (09:15 +0000)
committerLuca Barbato <lu_zero@gentoo.org>
Tue, 21 Mar 2017 11:08:49 +0000 (12:08 +0100)
commite245d4f45ca5e2b97daef5944d63323c07d545bc
tree0be318afea05f7fbab4b80c6b88e60602c915a0d
parent3df77b58e35a30ed550f99936a308f6bd2f47a20
dca: Validate the channel map

Having a mismatch between the number of channels in the stream and those
in the channel map will lead to a segfault or worse.

Bug-Id: 1016

CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/dcadec.c