[ogg-dev] What does oggz_tell() actually return?

Conrad Parker conrad at metadecks.org
Wed Feb 24 18:02:18 PST 2010


On 30 January 2010 07:11, Pauli Ojala <pauli at lacquer.fi> wrote:
> Hello all,
>
> I'm trying to use liboggz to parse and display Ogg media files. I'm
> wondering what the return value of oggz_tell() actually is and how is
> one supposed to use it.
>
> The documentation says that oggz_tell() returns "the current offset of
> oggz". This sounds like it would be basically the file position
> indicator, and could be used to seek within the Ogg file to a specific
> byte position.
>
> The problem is that the values actually returned by this function
> extend way beyond the file's length. Is there some constant by which I
> should scale these values to make them usable?
>
> (To narrow down the problem, I modified oggz_tell() to print the
> result of a plain ftello(oggz->file) call. Here's an example value
> illustrating the problem: ftello() says the file position is 384000,
> but oggz_tell() returns 3623387. For the last packet in the file,
> ftello() reports 8322048, while oggz_tell() says 79363430... Where
> does this multiplier of roughly 9.5 come from?)

Hi,

firstly, what version of liboggz are you using?

Conrad.


More information about the ogg-dev mailing list