diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-08-27 07:01:51 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-08-27 07:23:42 +0400 |
commit | 4e8b20609201161c81e047e1c4eec30a26952dfd (patch) | |
tree | 6dc56771d78a8e9deec558199903e92643a92f20 /libavformat/mpc.c | |
parent | a503afb11f80facc0fa12b733c5c58989950b108 (diff) |
mpc: fix seeking to the end
Fixes Ticket1689
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mpc.c')
-rw-r--r-- | libavformat/mpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpc.c b/libavformat/mpc.c index 2ca8dfa4dd..3b818ed146 100644 --- a/libavformat/mpc.c +++ b/libavformat/mpc.c @@ -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; } |