consistent use of SAMPLES_PER_FRAME in g711.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, this one bugged me when I tried to use the g711 codec with 5ms ptime:
The samples per frame value is hardcoded ( 80 ) in the source instead of
using the define SAMPLES_PER_FRAME.
In g711.c :

    line: 334 replace "80" with "SAMPLES_PER_FRAME"
    line: 343 replace "80" with "SAMPLES_PER_FRAME"

Could one of you devs (by the way you do a great job here) submit this?


this enables simple switching between codec ptimes at compiletime by just
changing the define "PTIME" to any value you like (i.e.: 5) .

BR,
Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20120914/2c490764/attachment-0001.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux