mjpegdec: validate parameters in mjpeg_decode_scan_progressive_ac