binkaudio: fix channel count check
authorPeter Ross <pross@xvid.org>
Tue, 15 Feb 2011 11:58:51 +0000 (11:58 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 15 Feb 2011 15:32:33 +0000 (16:32 +0100)
commit136901567c44a653485b5e97caff4fee09424b18
tree335bc344da8b0db62f09516b5d8a4955d3580125
parent73b3b52285db58844161a91616548b3bf9c86220
binkaudio: fix channel count check

Perform validity check on AVFormatContext.channels instead of
uninitialised field.

This fixes issue 2001.

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 9806fbd5351fa84f99fa5b18fe06859acb514f34)
libavcodec/binkaudio.c