j2k & jpeg2000dec: reset numX/Ytiles if tiles failed allocation
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 22 May 2013 01:17:35 +0000 (03:17 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 22 May 2013 01:18:55 +0000 (03:18 +0200)
commit17e66c9ff4774e254932d34dade77b1c04139a4f
tree66eb96b2fb5dd58b7894ec0a2a10ccd6900fb0b3
parent53f04424646d8f5cbac915717f2604ad516b4881
j2k & jpeg2000dec: reset numX/Ytiles if tiles failed allocation

Fixes null pointer dereference

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