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 e614fac2e6)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.9.1