]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/blobdiff - ffplay.c
Simplify the logic for the subtitle stream selection.
[frescor/ffmpeg.git] / ffplay.c
index 6d9caf22242d5282737b80c727e095bde149dfd9..b4927c674472f0bd862e99f9d8a74f10c741fdc8 100644 (file)
--- a/ffplay.c
+++ b/ffplay.c
@@ -1982,8 +1982,7 @@ static int decode_thread(void *arg)
                 video_index = i;
             break;
         case CODEC_TYPE_SUBTITLE:
-            if (wanted_subtitle_stream >= 0 && !video_disable &&
-                    (subtitle_index < 0 || wanted_subtitle_stream-- >= 0))
+            if (wanted_subtitle_stream-- >= 0 && !video_disable)
                 subtitle_index = i;
             break;
         default: