aboutsummaryrefslogtreecommitdiffstats
path: root/ffplay.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2009-03-01 17:02:21 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2009-03-01 17:02:21 +0000
commit5ad4f0d473f41360065bdf272d245c8c6575d12a (patch)
tree3ca78be5bef0d7712535c13beb323e3bc64c67be /ffplay.c
parent7f668bb3eab5605c49e30b8904cdc49faa82a497 (diff)
downloadffmpeg-5ad4f0d473f41360065bdf272d245c8c6575d12a.tar.gz
Simplify the logic for the subtitle stream selection.
Originally committed as revision 17692 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ffplay.c b/ffplay.c
index 6d9caf2224..b4927c6744 100644
--- 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: