jpeg2000: Check that there is a SOT before SOD
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 1 Jul 2013 08:01:14 +0000 (10:01 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Tue, 2 Jul 2013 18:05:45 +0000 (20:05 +0200)
commitb564784a207b1395d2b5a41e580539df04651096
treef896c009222af02ba9d3de125c5a3660ff032573
parent2c3901b2c34b5e1f556d0e19c4cc218fdcbec695
jpeg2000: Check that there is a SOT before SOD

Avoid overreads.

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