[FFmpeg-cvslog] ape: fix seeking

Paul B Mahol git at videolan.org
Sun Feb 5 03:17:42 CET 2012


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Feb  3 18:30:18 2012 +0000| [86b57e4efea649246d882fcfdfa02e148a736496] | committer: Justin Ruggles

ape: fix seeking

Signed-off-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=86b57e4efea649246d882fcfdfa02e148a736496
---

 libavformat/ape.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavformat/ape.c b/libavformat/ape.c
index 080e0ba..345648e 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;
 }



More information about the ffmpeg-cvslog mailing list