xwma: check bytes_per_sample, fix division by 0.
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 14 Nov 2012 23:56:33 +0000 (00:56 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 14 Nov 2012 23:56:54 +0000 (00:56 +0100)
commita3cb7f992f88fcfa524bd9cd08b28e09d6718f75
tree1bc96a14e2c1a25bb53927f70ca8623bde67cbec
parent12eb2fd5394813a6119912b22f5dfc17b4a6b4a0
xwma: check bytes_per_sample, fix division by 0.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/xwma.c