mjpegdec: pass nb_components into ljpeg_decode_yuv_scan
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 13 Feb 2013 13:20:01 +0000 (14:20 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 13 Feb 2013 13:20:46 +0000 (14:20 +0100)
commitb2e57eb5a3cb9d5dfab601077fa0edee91e06ca5
tree6a46811e1a0e113ecdededb2e816f1b066734caa
parent8f7c7ff2d6050d1fe0a70e0781f6ea41d9c3071f
mjpegdec: pass nb_components into ljpeg_decode_yuv_scan

Fixes null pointer dereference

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