mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 03:39:45 +00: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