diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-03-01 17:02:21 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-03-01 17:02:21 +0000 |
commit | 5ad4f0d473f41360065bdf272d245c8c6575d12a (patch) | |
tree | 3ca78be5bef0d7712535c13beb323e3bc64c67be | |
parent | 7f668bb3eab5605c49e30b8904cdc49faa82a497 (diff) | |
download | ffmpeg-5ad4f0d473f41360065bdf272d245c8c6575d12a.tar.gz |
Simplify the logic for the subtitle stream selection.
Originally committed as revision 17692 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | ffplay.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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: |