You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
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:
committed by
Michael Niedermayer
parent
778439b69a
commit
6dc1d5f87c
@@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user