avcodec/mjpegdec: check len in mjpeg_decode_app() more completely
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 22 Nov 2013 15:51:07 +0000 (16:51 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 22 Nov 2013 16:02:00 +0000 (17:02 +0100)
commit6060234d43dcf0b5200cdd7dbd2f1542146827eb
treeae3781076eeb3894cb26bea3a61c162d42405131
parentba992711f79ccfba4ff0b305215d7056faf0ed0d
avcodec/mjpegdec: check len in mjpeg_decode_app() more completely

Avoids len from becoming negative and causing assertion failure

Fixes: signal_sigabrt_7ffff7126425_5140_fd44dc63fa7bdd12ee34fc602231ef02.jpg

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/mjpegdec.c