Commit 72977c93 authored by stefano's avatar stefano

Simplify the logic for the subtitle stream selection.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17692 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent cd655c7b
...@@ -1982,8 +1982,7 @@ static int decode_thread(void *arg) ...@@ -1982,8 +1982,7 @@ static int decode_thread(void *arg)
video_index = i; video_index = i;
break; break;
case CODEC_TYPE_SUBTITLE: case CODEC_TYPE_SUBTITLE:
if (wanted_subtitle_stream >= 0 && !video_disable && if (wanted_subtitle_stream-- >= 0 && !video_disable)
(subtitle_index < 0 || wanted_subtitle_stream-- >= 0))
subtitle_index = i; subtitle_index = i;
break; break;
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment