avcodec/mjpegdec: Skip blocks which are outside the visible area