diff --git a/libavformat/utils.c b/libavformat/utils.c index 9c607d730787992aea741887a1b86c485ba9f0d6..0a79fe7eb7617b74aa3f1200ee326d1d360db1e2 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -415,7 +415,7 @@ static int set_codec_from_probe_data(AVFormatContext *s, AVStream *st, AVProbeDa int score; AVInputFormat *fmt = av_probe_input_format3(pd, 1, &score); - if (fmt) { + if (fmt && st->request_probe <= score) { int i; av_log(s, AV_LOG_DEBUG, "Probe with size=%d, packets=%d detected %s with score=%d\n", pd->buf_size, MAX_PROBE_PACKETS - st->probe_packets, fmt->name, score);