diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-03-01 16:58:59 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-03-01 16:58:59 +0000 |
commit | 7f668bb3eab5605c49e30b8904cdc49faa82a497 (patch) | |
tree | cf17fbd6e46b3cd043968b8368aca215b84ee287 /ffplay.c | |
parent | 827f7e285ba1d0090f8c39770a5669373a132fad (diff) | |
download | ffmpeg-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: |