avformat/vobsub: fix invalid sub queue access while seeking.
If there is only 1 stream and seek isn't called with a specific stream
index, we pick the first (and only) one.
Regression since dbfe6110.
Fixes CID1108591.
This commit is contained in:
parent
fed483f188
commit
4189fe11ff
1 changed files with 2 additions and 0 deletions
|
|
@ -916,6 +916,8 @@ static int vobsub_read_seek(AVFormatContext *s, int stream_index,
|
|||
return ret;
|
||||
}
|
||||
|
||||
if (stream_index == -1) // only 1 stream
|
||||
stream_index = 0;
|
||||
return ff_subtitles_queue_seek(&vobsub->q[stream_index], s, stream_index,
|
||||
min_ts, ts, max_ts, flags);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue