summaryrefslogtreecommitdiff
path: root/libavformat/oggdec.c
diff options
context:
space:
mode:
authorDavid Conrad <lessen42@gmail.com>2010-03-11 07:17:29 +0000
committerDavid Conrad <lessen42@gmail.com>2010-03-11 07:17:29 +0000
commit50a9d32310e7a67fa3a9b2c92d5ed70ac00261e4 (patch)
tree3ab9b3c94363367973659317fc9e39c52dba695f /libavformat/oggdec.c
parent73823cb941ee30a91703c50bfcf12d353a00a6de (diff)
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
Diffstat (limited to 'libavformat/oggdec.c')
-rw-r--r--libavformat/oggdec.c1
1 files changed, 1 insertions, 0 deletions
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;