mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Simplify the logic for the subtitle stream selection.
Originally committed as revision 17692 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
7f668bb3ea
commit
5ad4f0d473
3
ffplay.c
3
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:
|
||||
|
Loading…
Reference in New Issue
Block a user