oggdec: Support byte based seeking

Fixed Ticket2317

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-04-04 04:03:07 +02:00
parent e10f5bd05c
commit e278500181
1 changed files with 5 additions and 0 deletions

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 {