Hello,

I'm trying to write a simple mp3 decoder. I can open a file, find a
syncword, read the side info. Then I follow the ISO source code and copy
nb_slots bytes from the bitstream to a 4k circular buffer. I'd like to know
where I have to set up the offset in that circular buffer to start decoding
the main data of the frame. Is the following formula correct :

Offset for the current frame = Offset to the last byte of the previous
frame - Main_data_begin ?

Another question : is it possible to know in advance the number of bits that
will be needed to decode the frame ?

Thanks in advance

_______________________________________________
mp3encoder mailing list
[EMAIL PROTECTED]
http://minnie.tuhs.org/mailman/listinfo/mp3encoder

Reply via email to