summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: