[Freeswitch-dev] Typo in stfu.c ?

Vassil Panayotov vd.panayotov at gmail.com
Thu Aug 7 17:59:51 EDT 2008


Hi list,

I asked Anthony about this in IRC, but he seemed to be quite busy at cluecon
and I really don't understand how this works.

If I understand correctly, the function stfu_n_measure_interval tries to
estimate what the difference between timestamps of two consecutive RTP
packets should be and records the frequency of occurrence? I don't
understand the following(stfu.c:128) :

if (track[index] > most) {
            most = index;
        }

What is the point of comparing the frequency of occurrence with an index?
Maybe it should be:

 if (track[index] > track[most]) {
            most = index;
        }

Best regards.
Vassil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20080808/40888325/attachment.html 


More information about the Freeswitch-dev mailing list