From 6dc1d5f87ced885d748f8d0c7bfbc5ff6471483f Mon Sep 17 00:00:00 2001 From: Alex Agranovsky Date: Sat, 13 Feb 2016 23:15:20 -0500 Subject: lavf/mpjpeg: probe should not depend on Content-Length MIME header being present Signed-off-by: Alex Agranovsky Signed-off-by: Michael Niedermayer --- libavformat/mpjpegdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/mpjpegdec.c') 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); -- cgit v1.2.3