lavf/rawdec: Return a low score if the mjpeg probe function detected one frame.

Fixes ticket #9026.
pull/358/head
Carl Eugen Hoyos 4 years ago
parent 072835898d
commit 7ab5192260
  1. 2
      libavformat/rawdec.c

@ -208,6 +208,8 @@ static int mjpeg_probe(const AVProbeData *p)
return AVPROBE_SCORE_EXTENSION / 2;
return AVPROBE_SCORE_EXTENSION / 4;
}
if (!nb_invalid && nb_frames)
return AVPROBE_SCORE_EXTENSION / 4;
return 0;
}

Loading…
Cancel
Save