diff --git a/libavformat/mpjpegdec.c b/libavformat/mpjpegdec.c index 7a6bbe491b..9d539bbf53 100644 --- a/libavformat/mpjpegdec.c +++ b/libavformat/mpjpegdec.c @@ -124,7 +124,7 @@ static int mpjpeg_read_probe(AVProbeData *p) if (!pb) return 0; - ret = (parse_multipart_header(pb, &size, "--", NULL) > 0) ? AVPROBE_SCORE_MAX : 0; + ret = (parse_multipart_header(pb, &size, "--", NULL) >= 0) ? AVPROBE_SCORE_MAX : 0; av_free(pb);