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>
Thu, 5 Sep 2013 03:48:15 +0000 (05:48 +0200)
commit49237131e98010e0afe13276bcec7a3afff703f6
treef23ca55b0d16e1677560afc445a381d8649f3b0c
parent11586b077e6e81bc390b6df657429b4a39741d2f
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>
(cherry picked from commit 61c68000eda643dfce96dc46b488d39fd5c4e309)

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