If the end of the input buffer is reached while decoding MJPEG and at least