wma: Lower the maximum number of channels to 2
authorMartin Storsjö <martin@martin.st>
Sat, 30 Jun 2012 18:30:28 +0000 (21:30 +0300)
committerMartin Storsjö <martin@martin.st>
Sun, 1 Jul 2012 12:51:26 +0000 (15:51 +0300)
commit710bd8a33e9c183ded4a61d742d404d8d5d838ea
treef5acd99bde020addc649745ba74fc8418465a546
parent889c1ec4cc064313092bc43a8a3a05aac9799e61
wma: Lower the maximum number of channels to 2

ff_wma_init is used only by wmadec and wmaenc, and neither of them
can handle more than 2 channels.

This fixes crashes with invalid files.

Based on patch by Piotr Bandurski and Michael Niedermayer.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavcodec/wma.c