avcodec/mjpegdec: fix overread in find_marker()