Commit 6dc1d5f8 authored by Alex Agranovsky's avatar Alex Agranovsky Committed by Michael Niedermayer

lavf/mpjpeg: probe should not depend on Content-Length MIME header being present

Signed-off-by: 's avatarAlex Agranovsky <alex@sighthound.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 778439b6
...@@ -124,7 +124,7 @@ static int mpjpeg_read_probe(AVProbeData *p) ...@@ -124,7 +124,7 @@ static int mpjpeg_read_probe(AVProbeData *p)
if (!pb) if (!pb)
return 0; 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); av_free(pb);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment