mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-14 22:22:59 +02:00
make av_find_best_stream() ignore streams marked with AV_DISPOSITION_*_IMPAIRED
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net> (cherry picked from commit 52091491575f015c09a32a745de4f7f7592fe6d4)
This commit is contained in:
parent
8270db386f
commit
d43d2197c2
@ -2516,6 +2516,8 @@ int av_find_best_stream(AVFormatContext *ic,
|
||||
continue;
|
||||
if (wanted_stream_nb >= 0 && stream_number++ != wanted_stream_nb)
|
||||
continue;
|
||||
if (st->disposition & (AV_DISPOSITION_HEARING_IMPAIRED|AV_DISPOSITION_VISUAL_IMPAIRED))
|
||||
continue;
|
||||
if (decoder_ret) {
|
||||
decoder = avcodec_find_decoder(ic->streams[i]->codec->codec_id);
|
||||
if (!decoder) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user