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:24:52 +0000 (00:24 +0100)
commit69e191f854f75815f17099a9a5f911dc30075c70
tree67f2243f93246fc4124d09f19ab0a6cfffe7da54
parent3fa6ecca763225adada3b275806eafcbf0472dda
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