qdm2: check that coding_method is valid before using it.
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 9 Nov 2012 12:13:50 +0000 (13:13 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 9 Nov 2012 12:13:50 +0000 (13:13 +0100)
commit5ee008e01d5a50d976b5f2a4abd6932185672d91
treea3ec320b5c3433a6244b98f7f31a7b0346508ca5
parent909a18f73b30ed33495b9ee87114c0ed4fbd9cee
qdm2: check that coding_method is valid before using it.

Fixes out of array reads.

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