avcodec/jpeg2000dec: Check cdx/y values more carefully
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 21 Aug 2013 02:40:50 +0000 (04:40 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 22 Aug 2013 23:02:03 +0000 (01:02 +0200)
commit8bb11c3ca77b52e05a9ed1496a65f8a76e6e2d8f
treee0dc3e6b6baace5a795c01f67b18d8f4d8d05dde
parentc443689afbb3edf3b025d4b7834c707d63eaa6b4
avcodec/jpeg2000dec: Check cdx/y values more carefully

Some invalid values where not handled correctly in the later pixel
format matching code.
Fixes out of array accesses
Fixes Ticket2848

Found-by: Piotr Bandurski <ami_stuff@o2.pl>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/jpeg2000dec.c