X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Foggdecoder.cpp;h=374cf0b5ba06966174270a96c1d193a511843bcb;hb=1e7141871d33e3e184456ba063fcf3448a8cc12a;hp=78a2b5ac158d20a857db455f7ee7e1e969b12922;hpb=227da1e7a20432e056e7ab42444cb56f197c53d6;p=libs%2Fal.git diff --git a/source/oggdecoder.cpp b/source/oggdecoder.cpp index 78a2b5a..374cf0b 100644 --- a/source/oggdecoder.cpp +++ b/source/oggdecoder.cpp @@ -106,12 +106,13 @@ bool OggDecoder::detect(const std::string &sig) static const char ogg_sig[] = { 'O', 'g', 'g', 'S' }; if(sig.size()ovfile, 0); + pos /= get_unit_size(format); + ov_pcm_seek(&priv->ovfile, pos); } unsigned OggDecoder::read(char *buf, unsigned len)