lavf/img2dec: Increase score for very large jpeg images.

Avoids a conflict with the raw mjpeg demuxer.
pull/371/head
Carl Eugen Hoyos 4 years ago
parent b0a882cc93
commit 2943c3debd
  1. 2
      libavformat/img2dec.c

@ -817,7 +817,7 @@ static int jpeg_probe(const AVProbeData *p)
return AVPROBE_SCORE_EXTENSION + 1;
if (state == SOS)
return AVPROBE_SCORE_EXTENSION / 2;
return AVPROBE_SCORE_EXTENSION / 8;
return AVPROBE_SCORE_EXTENSION / 8 + 1;
}
static int jpegls_probe(const AVProbeData *p)

Loading…
Cancel
Save