<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><var id="yui-ie-cursor"></var>Hi,</div><div>&nbsp;</div><div>Is there anybody out there who can tell me how to solve the following problem:</div><div>&nbsp;</div><div>An RTP payload of encoded speex data is received. The length of the payload is</div><div>N bytes. The length corresponds to 20ms * K of encoded audio where K is an</div><div>unknown integer. The audio was encoded by an encoder in wideband mode.</div><div>&nbsp;</div><div>How do I partition the payload when I don't know which bitrate mode of the</div><div>encoder? I want to hand over 20ms of encoded audio to the decoder, but to be</div><div>able to do that I need to know how many bytes of the payload corresponds to</div><div>20ms.</div><div>&nbsp;</div><div>I read that the bitrate mode and the wideband bit is embedded in the first byte, but</div><div>that is not
 what I actually see. What I see is that the MSB of the first encoded byte</div><div>is 0 and the following bits do not correspond to the bitrate mode that was used when</div><div>encoding the audio.</div><div>&nbsp;</div><div>So I am wondering what I am doing wrong.</div><div>&nbsp;</div><div>Is it because the first part of the payload is a narrowband bitstream ? And I need to </div><div>extract the narrowband bitrate mode first,&nbsp;figure out how many bytes (M) that mode</div><div>corresponds to&nbsp;and skip&nbsp;M&nbsp;bytes ahead to get the wideband</div><div>bitrate mode? </div><div>&nbsp;</div><div>Or is there a quicker way of doing it?</div><div>&nbsp;</div><div>Can somebody please shed some light on this??</div><div>&nbsp;</div><div>Thank you!!</div><div>&nbsp;</div><div>&nbsp;</div></div></body></html>