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>
pull/180/head
Alex Agranovsky 9 years ago committed by Michael Niedermayer
parent 778439b69a
commit 6dc1d5f87c
  1. 2
      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);

Loading…
Cancel
Save