1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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

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

Originally committed as revision 17691 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Stefano Sabatini 2009-03-01 16:58:59 +00:00
parent 827f7e285b
commit 7f668bb3ea

View File

@ -1983,7 +1983,7 @@ static int decode_thread(void *arg)
break; break;
case CODEC_TYPE_SUBTITLE: case CODEC_TYPE_SUBTITLE:
if (wanted_subtitle_stream >= 0 && !video_disable && if (wanted_subtitle_stream >= 0 && !video_disable &&
(subtitle_index < 0 || wanted_subtitle_stream-- > 0)) (subtitle_index < 0 || wanted_subtitle_stream-- >= 0))
subtitle_index = i; subtitle_index = i;
break; break;
default: default: