mirror of https://git.ffmpeg.org/ffmpeg.git
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:
parent
778439b69a
commit
6dc1d5f87c
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue