avcodec/jpeg2000dec: More completely check cdef
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 27 Jan 2016 16:13:10 +0000 (17:13 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 30 Jan 2016 23:23:46 +0000 (00:23 +0100)
commit12f256a729a8d9f1f1ae37dc14fb4437b935b133
tree554dc3b934a2bf673dab80240021e25851a67a30
parentb54b8a628c8baa3f599048e4161e7b9bd6f45c85
avcodec/jpeg2000dec: More completely check cdef

Fixes out of array access
Fixes: j2k-poc.bin

Found-by: Lucas Leong <wmliang.tw@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 0aada30510d809bccfd539a90ea37b61188f2cb4)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/jpeg2000dec.c