Commit ff6841c6 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/utils: avoid discarded streams in av_find_default_stream_index()

Fixes Ticket2010
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ba54512a
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment