Hi, In section 8.6.2 of latest Vorbis I specification dated, feb3 2010, it says "Before beginning residue decode, limit [residue_begin] and [residue_end] to the maximum possible vector size"(3rd para) 1) [actual_size] = current blocksize/2; 2) if residue encoding is format 2 3) [actual_size] = [actual_size] * [ch]; 4) [limit_residue_begin] = maximum of ([residue_begin],[actual_size]); 5) [limit_residue_end] = maximum of ([residue_end],[actual_size]); The equation for limit_residue_begin and limit_residue_end seems to be wrong. Could you please clarify weather the following is the correct one as suggested by the quote above. [limit_residue_begin] = minimum of ([residue_begin],[actual_size]) and residue_begin>=0 [limit_residue_end] = mimimum of ([residue_end],[actual_size]) and residue_end>=0 Thanks and regards, Aswin.