提交 5ad4f0d4 编写于 作者: S Stefano Sabatini

Simplify the logic for the subtitle stream selection.

Originally committed as revision 17692 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 7f668bb3
......@@ -1982,8 +1982,7 @@ static int decode_thread(void *arg)
video_index = i;
break;
case CODEC_TYPE_SUBTITLE:
if (wanted_subtitle_stream >= 0 && !video_disable &&
(subtitle_index < 0 || wanted_subtitle_stream-- >= 0))
if (wanted_subtitle_stream-- >= 0 && !video_disable)
subtitle_index = i;
break;
default:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册