mjpegdec: consider chroma subsampling in size check