提交 52091491 编写于 作者: P Peter Ross 提交者: Janne Grunau

make av_find_best_stream() ignore streams marked with AV_DISPOSITION_*_IMPAIRED

Signed-off-by: NJanne Grunau <janne-ffmpeg@jannau.net>
上级 12c14cd4
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册