xwma: Validate channels and bits_per_coded_sample.
authorAlex Converse <alex.converse@gmail.com>
Wed, 21 Mar 2012 17:58:07 +0000 (10:58 -0700)
committerReinhard Tartler <siretart@tauware.de>
Sun, 29 Apr 2012 20:07:02 +0000 (22:07 +0200)
commit15de658c04b6ce6a6628702837f98b8572e6b9f4
tree9328faae80d3c853a18c7b9fa11e8f6091ca2a37
parent19d3f7d8ac3f240a5be2058289488dfd47806a01
xwma: Validate channels and bits_per_coded_sample.

This prevents a SIGFPE later on.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
(cherry picked from commit 5023b89bba198b2f8e43b7f555aeb9c30d33db9f)

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
libavformat/xwma.c