From 86b57e4efea649246d882fcfdfa02e148a736496 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Fri, 3 Feb 2012 18:30:18 +0000 Subject: [PATCH] ape: fix seeking Signed-off-by: Paul B Mahol Signed-off-by: Justin Ruggles --- libavformat/ape.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/ape.c b/libavformat/ape.c index 080e0ba8f6..345648eb33 100644 --- a/libavformat/ape.c +++ b/libavformat/ape.c @@ -406,6 +406,8 @@ static int ape_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp if (index < 0) return -1; + if (avio_seek(s->pb, st->index_entries[index].pos, SEEK_SET) < 0) + return -1; ape->currentframe = index; return 0; }