[FFmpeg-cvslog] lavf/mpjpeg: probe should not depend on Content-Length MIME header being present
Alex Agranovsky
git at videolan.org
Sun Feb 21 20:09:28 CET 2016
ffmpeg | branch: master | Alex Agranovsky <alex at sighthound.com> | Sat Feb 13 23:15:20 2016 -0500| [6dc1d5f87ced885d748f8d0c7bfbc5ff6471483f] | committer: Michael Niedermayer
lavf/mpjpeg: probe should not depend on Content-Length MIME header being present
Signed-off-by: Alex Agranovsky <alex at sighthound.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6dc1d5f87ced885d748f8d0c7bfbc5ff6471483f
---
libavformat/mpjpegdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/mpjpegdec.c b/libavformat/mpjpegdec.c
index 7a6bbe4..9d539bb 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);
More information about the ffmpeg-cvslog
mailing list