Browse Source

ape: fix seeking

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
tags/n0.11
Paul B Mahol Justin Ruggles 14 years ago
parent
commit
86b57e4efe
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/ape.c

+ 2
- 0
libavformat/ape.c View File

@@ -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;
}


Loading…
Cancel
Save