Commit 4e8b2060 authored by Michael Niedermayer's avatar Michael Niedermayer

mpc: fix seeking to the end

Fixes Ticket1689
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a503afb1
......@@ -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;
}
......
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