Changeset 5365


Ignore:
Timestamp:
Jun 29, 2016 5:46:17 AM (8 years ago)
Author:
riza
Message:

Re #1928: Allow setting opus bitrate to PJMEDIA_CODEC_OPUS_DEFAULT_BIT_RATE when calling pjmedia_codec_opus_set_default_param.
Thanks to Marcus Froeschl for the report.

File:
1 edited

Legend:

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

    r5239 r5365  
    392392 
    393393    /* Set bit_rate */ 
    394     if (cfg->bit_rate < 6000 || cfg->bit_rate > 510000) { 
     394    if (cfg->bit_rate != PJMEDIA_CODEC_OPUS_DEFAULT_BIT_RATE) &&  
     395       (cfg->bit_rate < 6000 || cfg->bit_rate > 510000)  
     396    { 
    395397        return PJ_EINVAL; 
    396398    } 
Note: See TracChangeset for help on using the changeset viewer.