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>
This commit is contained in:
Alex Agranovsky 2016-02-13 23:15:20 -05:00 committed by Michael Niedermayer
parent 778439b69a
commit 6dc1d5f87c
1 changed files with 1 additions and 1 deletions

View 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);