Hi!<br>
<br>
Sifting through the code, once more, I've found something that confuses me.<br>
<br>
Each frame struct contains both a datalen and samples fields. However, inside ast_rtp_raw_write on rtp.c (line 1190), we have <br>
<br>
<span style="font-family: courier new,monospace;">pred = rtp-&gt;lastts + ast_codec_get_samples(f)</span><br>
<br>
Now, wouldn't it be easier and faster to simply have<br>
<br>
<span style="font-family: courier new,monospace;">pred = rtp-&gt;lastts + f-&gt;samples</span>?<br>
<br clear="all">Or am I missing something? The thing with <span style="font-family: courier new,monospace;">ast_codec_get_samples</span>
is that is is somewhat computationally expensive when dealing with
highly compressed codecs like speex, for example. It would be nice to
be able to avoid it on a function that is being used all the time,
namely, ast_rtp_raw_write.<br>
<br>
Thanks!<br>
<br>
Carlos<br>
<br>-- <br>&quot;We hold [...] that all men are created equal; that they are<br>endowed [...] with certain inalienable rights; that among<br>these are life, liberty, and the pursuit of happiness&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- Thomas Jefferson