avcodec/mjpegdec: Add some sanity checks to ljpeg_decode_rgb_scan()
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 4 Sep 2013 22:36:44 +0000 (00:36 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 4 Sep 2013 23:39:20 +0000 (01:39 +0200)
commit61c68000eda643dfce96dc46b488d39fd5c4e309
treea9ca2f1b66660b2bd57001fa61c1664f423edc8e
parentf9742896713d220a006a7423a481129aeedc14fc
avcodec/mjpegdec: Add some sanity checks to ljpeg_decode_rgb_scan()

These prevent the rgb ljpeg code from being run on parameters that it doesnt
support. No testcase available but it seems possible to trigger these.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/mjpegdec.c