vorbis: make sure ch is non zero before calling vorbis_residue_decode
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 4 Jan 2012 20:55:52 +0000 (21:55 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 4 Jan 2012 21:19:02 +0000 (22:19 +0100)
commit58afa73338489c0a89ee427ab02e592513fb1c59
tree292270c94b9f777c0eb73ac487866a82c3acbfb5
parent68ee43468e1b9d36eb2ffe1d3294af0c0a7858e8
vorbis: make sure ch is non zero before calling vorbis_residue_decode

This possibly makes part of the CVE-2011-3895 fix unneeded.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit ff7f198d7f9504f71676327be0be47661cfe39d6)

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