Changeset 2233


Ignore:
Timestamp:
Aug 22, 2008 3:45:08 PM (11 years ago)
Author:
nanang
Message:

Fixed miscalculation of conference port buffer size (rx/tx_buf_cap) when two conf ports have different clock rate/channel count/samples per frame (thanks Joao Cesar).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/conference.c

    r2039 r2233  
    358358         */ 
    359359        if (port_ptime > conf_ptime) { 
    360             buff_ptime = conf_ptime * (port_ptime / conf_ptime); 
     360            buff_ptime = port_ptime; 
    361361            if (port_ptime % conf_ptime) 
    362362                buff_ptime += conf_ptime; 
    363363        } else { 
    364             buff_ptime = port_ptime * (conf_ptime / port_ptime); 
     364            buff_ptime = conf_ptime; 
    365365            if (conf_ptime % port_ptime) 
    366366                buff_ptime += port_ptime; 
Note: See TracChangeset for help on using the changeset viewer.