jpeg2000dec: return error for invalid cdxy values
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 5 Jun 2013 21:05:13 +0000 (23:05 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 5 Jun 2013 21:31:19 +0000 (23:31 +0200)
commitbbc19010edfdb1b2e248a24894c5ec77960bbfc3
tree8b7744f071415c4b62d0e9b44118ca4cdd017b2c
parent702c1bf240f255d9afe2c3dbf2f07d7fbdc2ffc7
jpeg2000dec: return error for invalid cdxy values

Fixes division by 0

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