avcodec/jpeg2000: Check comp coords to be within the supported size
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 15 Nov 2015 19:49:17 +0000 (20:49 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 15 Nov 2015 20:05:26 +0000 (21:05 +0100)
commita9c73b13c1170a43bc8b3e0e85c21f97145b3d2f
tree4201487cda30eba74432fd01ec65f2cbea9c73cb
parentd972df307aaa593e5c3f2a7a23570c63665ed601
avcodec/jpeg2000: Check comp coords to be within the supported size

Fixes assertion failure
Fixes: 03e0abe721b1174856d41a1eb5d6a896/signal_sigabrt_7ffff6ae7cc9_3813_e71bf3541abed3ccba031cd5ba0269a4.avi

This fix is choosen to be simple to backport, better solution
for master is planed

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit a1a8cbcb35ef2759a66b4f0875785e4b3f277057)

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