summaryrefslogtreecommitdiff
path: root/libavformat/ape.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-02-03 18:30:18 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2012-02-04 14:32:33 -0500
commit86b57e4efea649246d882fcfdfa02e148a736496 (patch)
treee15102b58f2e707b794add5471455db8bb64cd7b /libavformat/ape.c
parentb60620bf7ec355621aeeee1f10d6ea2904327985 (diff)
ape: fix seeking
Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
Diffstat (limited to 'libavformat/ape.c')
-rw-r--r--libavformat/ape.c2
1 files changed, 2 insertions, 0 deletions
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;
}