From 50a9d32310e7a67fa3a9b2c92d5ed70ac00261e4 Mon Sep 17 00:00:00 2001 From: David Conrad Date: Thu, 11 Mar 2010 07:17:29 +0000 Subject: oggdec: Set data_offset to the right value Otherwise it gets set automatically to a page midstream and prevents seeking to the first page. Originally committed as revision 22454 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/oggdec.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavformat') diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c index 2c2cb2d3bc..3ebd61bbbc 100644 --- a/libavformat/oggdec.c +++ b/libavformat/oggdec.c @@ -382,6 +382,7 @@ ogg_packet (AVFormatContext * s, int *str, int *dstart, int *dsize, int64_t *fpo os->segp = segp; os->psize = psize; ogg->headers = 1; + s->data_offset = os->sync_pos; }else{ os->pstart += os->psize; os->psize = 0; -- cgit v1.2.3