diff options
author | Peter Ross <pross@xvid.org> | 2011-02-10 17:25:40 +1100 |
---|---|---|
committer | Janne Grunau <janne-ffmpeg@jannau.net> | 2011-02-10 22:55:17 +0100 |
commit | 52091491575f015c09a32a745de4f7f7592fe6d4 (patch) | |
tree | 461d36c283b4e01cbf36c5be772f4cc9d1e5b95c /libavformat | |
parent | 12c14cd4a8bf844f6f3d16ae18999bdb47999324 (diff) | |
download | ffmpeg-streaming-52091491575f015c09a32a745de4f7f7592fe6d4.zip ffmpeg-streaming-52091491575f015c09a32a745de4f7f7592fe6d4.tar.gz |
make av_find_best_stream() ignore streams marked with AV_DISPOSITION_*_IMPAIRED
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index c21b922..870a287 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -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) { |