diff options
author | David Conrad <lessen42@gmail.com> | 2010-03-11 07:17:29 +0000 |
---|---|---|
committer | David Conrad <lessen42@gmail.com> | 2010-03-11 07:17:29 +0000 |
commit | 50a9d32310e7a67fa3a9b2c92d5ed70ac00261e4 (patch) | |
tree | 3ab9b3c94363367973659317fc9e39c52dba695f /libavformat/oggdec.c | |
parent | 73823cb941ee30a91703c50bfcf12d353a00a6de (diff) | |
download | ffmpeg-50a9d32310e7a67fa3a9b2c92d5ed70ac00261e4.tar.gz |
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.c | 1 |
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; |