pcmdec: check that channels is valid.
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 9 Nov 2012 19:47:54 +0000 (20:47 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 9 Nov 2012 20:06:01 +0000 (21:06 +0100)
commitb8551f8ea71b7d6ae39de121213860262d911001
tree792541075cf61de80cf87cd95c45c3d1b4f02cbb
parentac7ff0963bf353ffd951ae8d51444b82b7ea69c1
pcmdec: check that channels is valid.

Prevents a division by 0

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