summaryrefslogtreecommitdiff
path: root/libavformat/mpjpegdec.c
diff options
context:
space:
mode:
authorAlex Agranovsky <alex@sighthound.com>2016-02-13 23:15:20 -0500
committerMichael Niedermayer <michael@niedermayer.cc>2016-02-21 20:07:50 +0100
commit6dc1d5f87ced885d748f8d0c7bfbc5ff6471483f (patch)
tree005217ba32d5bc6acd6faca05b92eae9c0719e04 /libavformat/mpjpegdec.c
parent778439b69a63f48278b550937a87704b1d92e359 (diff)
downloadffmpeg-6dc1d5f87ced885d748f8d0c7bfbc5ff6471483f.tar.gz
lavf/mpjpeg: probe should not depend on Content-Length MIME header being present
Signed-off-by: Alex Agranovsky <alex@sighthound.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/mpjpegdec.c')
-rw-r--r--libavformat/mpjpegdec.c2
1 files changed, 1 insertions, 1 deletions
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);