Commit cd655c7b authored by stefano's avatar stefano

Fix subtitle selection logic, make ffplay select the subtitle stream N

rather than the subtitle stream N-1 when N is not zero.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17691 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0d02535b
......@@ -1983,7 +1983,7 @@ static int decode_thread(void *arg)
break;
case CODEC_TYPE_SUBTITLE:
if (wanted_subtitle_stream >= 0 && !video_disable &&
(subtitle_index < 0 || wanted_subtitle_stream-- > 0))
(subtitle_index < 0 || wanted_subtitle_stream-- >= 0))
subtitle_index = i;
break;
default:
......
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