mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
mpc: fix seeking to the end
Fixes Ticket1689 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
a503afb11f
commit
4e8b206092
@ -198,7 +198,7 @@ static int mpc_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp
|
||||
uint32_t lastframe;
|
||||
|
||||
/* if found, seek there */
|
||||
if (index >= 0){
|
||||
if (index >= 0 && st->index_entries[st->nb_index_entries-1].timestamp >= timestamp - DELAY_FRAMES){
|
||||
c->curframe = st->index_entries[index].pos;
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user