ac3dec: validate channel output mode against channel count
authorJustin Ruggles <justin.ruggles@gmail.com>
Wed, 20 Feb 2013 16:41:20 +0000 (11:41 -0500)
committerLuca Barbato <lu_zero@gentoo.org>
Sat, 21 Sep 2013 13:21:54 +0000 (15:21 +0200)
commit763519536b63636006c9a421a4b83a58d353b84e
tree016fcdb63e938cc18485b1aaec4895cf108c8383
parent521cbcb7d37fa12bf1038d1a73bbabcbf62589ed
ac3dec: validate channel output mode against channel count

Damaged frames can lead to a mismatch, which can cause a segfault
due to using an incorrect channel mapping.

CC:libav-stable@libav.org
(cherry picked from commit d7c450436fcb9d3ecf59884a574e7684183e753d)

Conflicts:

libavcodec/ac3dec.c
libavcodec/ac3dec.c