From 83c0b5f7a64e4c47801ee2f94635eea5ea144eb1 Mon Sep 17 00:00:00 2001
From: Alex Agranovsky <a...@sighthound.com>
Date: Sat, 13 Feb 2016 23:15:20 -0500
Subject: [PATCH 2/3] lavf/mpjpeg: probe should not depend on Content-Length
 MIME header being present

Signed-off-by: Alex Agranovsky <a...@sighthound.com>
---
 libavformat/mpjpegdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mpjpegdec.c b/libavformat/mpjpegdec.c
index 3446f2a..2a46671 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);
 
-- 
2.5.4 (Apple Git-61)

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to