mjpegbdec: check SOS/SOF ordering.
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 22 Apr 2012 12:19:18 +0000 (14:19 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 22 Apr 2012 12:58:28 +0000 (14:58 +0200)
commit9a4f5b76169a71156819dbaa8ee0b6ea25dc7195
tree5487924372ca81a942e72689b1d50ad825568e3c
parentabec6549ae1e86fdf89dbab8a8abca8eb7205c6e
mjpegbdec: check SOS/SOF ordering.

Fixes null ptr dereference

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