avcodec/mjpegdec: Simplify masking in ljpeg_decode_yuv_scan()