Browse Source

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
tags/v0.5
Stefano Sabatini 17 years ago
parent
commit
7f668bb3ea
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ffplay.c

+ 1
- 1
ffplay.c View File

@@ -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:


Loading…
Cancel
Save