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)
committerReinhard Tartler <siretart@tauware.de>
Tue, 26 Feb 2013 19:21:01 +0000 (20:21 +0100)
commit73d6f4651e64846c9a279357c158a32c6ffbd4f7
tree684c4110087602cfb27c2d578c84f4a4a85001fe
parentdc745b76aa9a7682004c96372a9e77549de1b765
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