Browse Source

oggdec: Support byte based seeking

Fixed Ticket2317

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.0
Michael Niedermayer 12 years ago
parent
commit
e278500181
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      libavformat/oggdec.c

+ 5
- 0
libavformat/oggdec.c View File

@@ -735,6 +735,11 @@ static int ogg_read_packet(AVFormatContext *s, AVPacket *pkt)
int pstart, psize;
int64_t fpos, pts, dts;

if (s->io_repositioned) {
ogg_reset(s);
s->io_repositioned = 0;
}

//Get an ogg packet
retry:
do {


Loading…
Cancel
Save