Help - Search - Members - Calendar
Full Version: end of packet condition during residue decode
Hydrogenaudio Forums > Lossy Audio Compression > Ogg Vorbis > Ogg Vorbis - Tech
alsa
Hi to everybody smile.gif

I am developing a simple Ogg-Vorbis decoder in C.
The problem is that during residue-vector decode,the decoder regularly read past the end of packet:very rarely it stops to read before (10-20 bytes before).Is this behavior normal?

I've read on the documentation that is not an error condition,and this can be considered a nominal occurrence,but it seems me strange that a packet codify less or more data of the expectation.

Many thanks in advance
Alberto
alsa
QUOTE (alsa @ Jan 12 2007, 21:44) *
Hi to everybody smile.gif

I am developing a simple Ogg-Vorbis decoder in C.
The problem is that during residue-vector decode,the decoder regularly read past the end of packet:very rarely it stops to read before (10-20 bytes before).Is this behavior normal?

I've read on the documentation that is not an error condition,and this can be considered a nominal occurrence,but it seems me strange that a packet codify less or more data of the expectation.

Many thanks in advance
Alberto


Ok,i have resolved the problem cool.gif
Bye

Alberto
SebastianG
Yeah, it sounds more like a bug considering "normal" streams.
However, decoders should not complain about end-of-packet conditions during residue decode since it might be a "peeled" stream.
alsa
Hi SebastianG

Thanks for your answer.

QUOTE (SebastianG @ Jan 19 2007, 18:24) *
However, decoders should not complain about end-of-packet conditions during residue decode since it might be a "peeled" stream.


I've used oggenc1.0-rc2 to encode the stream,maybe it produces only peeled streams.

However,i'm in order to apply the IMDCT to obtain the PCM samples.We will see those that it will happen biggrin.gif

Alberto
Garf
QUOTE (alsa @ Jan 28 2007, 09:37) *
I've used oggenc1.0-rc2 to encode the stream,maybe it produces only peeled streams.


No current encoder produces them.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.