lavf/mpjpeg: probe should not depend on Content-Length MIME header being present
authorAlex Agranovsky <alex@sighthound.com>
Sun, 14 Feb 2016 04:15:20 +0000 (23:15 -0500)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 21 Feb 2016 19:07:50 +0000 (20:07 +0100)
Signed-off-by: Alex Agranovsky <alex@sighthound.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mpjpegdec.c

index 7a6bbe4..9d539bb 100644 (file)
@@ -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);