From 7f668bb3eab5605c49e30b8904cdc49faa82a497 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Sun, 1 Mar 2009 16:58:59 +0000 Subject: [PATCH] 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 --- ffplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffplay.c b/ffplay.c index 18504c550a..6d9caf2224 100644 --- a/ffplay.c +++ b/ffplay.c @@ -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: