Fixes CID602563 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Unified · Split
| @@ -2398,7 +2398,7 @@ static int matroska_read_seek(AVFormatContext *s, int stream_index, · 2397 unmodified lines | |||
| 2398 | tracks[i].audio.buf_timecode = AV_NOPTS_VALUE; | 2398 | tracks[i].audio.buf_timecode = AV_NOPTS_VALUE; |
| 2399 | tracks[i].end_timecode = 0; | 2399 | tracks[i].end_timecode = 0; |
| 2400 | if (tracks[i].type == MATROSKA_TRACK_TYPE_SUBTITLE | 2400 | if (tracks[i].type == MATROSKA_TRACK_TYPE_SUBTITLE |
| 2401 | && !tracks[i].stream->discard != AVDISCARD_ALL) { | 2401 | && tracks[i].stream->discard != AVDISCARD_ALL) { |
| 2402 | index_sub = av_index_search_timestamp(tracks[i].stream, st->index_entries[index].timestamp, AVSEEK_FLAG_BACKWARD); | 2402 | index_sub = av_index_search_timestamp(tracks[i].stream, st->index_entries[index].timestamp, AVSEEK_FLAG_BACKWARD); |
| 2403 | if (index_sub >= 0 | 2403 | if (index_sub >= 0 |
| 2404 | && st->index_entries[index_sub].pos < st->index_entries[index_min].pos | 2404 | && st->index_entries[index_sub].pos < st->index_entries[index_min].pos |