[FFmpeg-devel] [PATCH 2/3] lavf/mpjpeg: probe should not depend on Content-Length
Alexander Agranovsky
alex at sighthound.com
Sun Feb 14 05:48:08 CET 2016
-------------- next part --------------
From 83c0b5f7a64e4c47801ee2f94635eea5ea144eb1 Mon Sep 17 00:00:00 2001
From: Alex Agranovsky <alex at 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 <alex at 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)
More information about the ffmpeg-devel
mailing list