Changeset 5374


Ignore:
Timestamp:
Jul 1, 2016 8:22:14 AM (8 years ago)
Author:
riza
Message:

Re #1928: max_bps on the param codec needs to be set properly on Opus.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-codec/opus.c

    r5371 r5374  
    385385    } 
    386386    param->info.clock_rate = opus_cfg.sample_rate = cfg->sample_rate; 
     387    param->info.max_bps = opus_cfg.sample_rate * 2; 
    387388 
    388389    /* Set channel count */ 
     
    464465    attr->info.channel_cnt         = opus_cfg.channel_cnt; 
    465466    attr->info.avg_bps             = opus_cfg.bit_rate; 
    466     attr->info.max_bps             = opus_cfg.bit_rate * 2; 
     467    attr->info.max_bps             = opus_cfg.sample_rate * 2; 
    467468    attr->info.frm_ptime           = 20; 
    468469    attr->setting.frm_per_pkt      = 1; 
Note: See TracChangeset for help on using the changeset viewer.