diff --git a/libavformat/utils.c b/libavformat/utils.c index 6eec7a1530..122fc1fdc4 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1597,6 +1597,9 @@ int av_find_default_stream_index(AVFormatContext *s) score += 50; } + if (st->discard != AVDISCARD_ALL) + score += 200; + if (score > best_score) { best_score = score; best_stream = i;