adpcm: Check for channels to be a non-zero integer
authorShitiz Garg <mail@dragooon.net>
Sat, 17 Dec 2011 14:05:59 +0000 (19:35 +0530)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 3 Jan 2012 18:07:30 +0000 (19:07 +0100)
commit1acf921d6f30dba14cec7f334feeeddd433e256a
tree603207955b0dba179189311cee4fa3127b8d85d3
parent7bf3f79502e1721600021c0ed6b86f48140ac43a
adpcm: Check for channels to be a non-zero integer

channels would be 0 sometimes and would cause floating point exception
Fixes bugzilla #124

Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
(cherry picked from commit e614fac2e6e185a247d722d4e92368b3c3bc4bdb)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/adpcm.c