aboutsummaryrefslogtreecommitdiffstats
path: root/ffplay.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2009-03-01 16:58:59 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2009-03-01 16:58:59 +0000
commit7f668bb3eab5605c49e30b8904cdc49faa82a497 (patch)
treecf17fbd6e46b3cd043968b8368aca215b84ee287 /ffplay.c
parent827f7e285ba1d0090f8c39770a5669373a132fad (diff)
downloadffmpeg-7f668bb3eab5605c49e30b8904cdc49faa82a497.tar.gz
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
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c2
1 files changed, 1 insertions, 1 deletions
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: