Changeset 3184


Ignore:
Timestamp:
May 26, 2010 1:50:42 PM (14 years ago)
Author:
nanang
Message:

Misc (re #1068): AMR codec in IPP codecs should apply Change Mode Request (from AMR payload) only when it is different from current encoding mode.

File:
1 edited

Legend:

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

    r3165 r3184  
    563563 
    564564    /* Check Change Mode Request. */ 
    565     if ((setting->amr_nb && cmr <= 7) || (!setting->amr_nb && cmr <= 8)) { 
     565    if (((setting->amr_nb && cmr <= 7) || (!setting->amr_nb && cmr <= 8)) && 
     566        s->enc_mode != cmr) 
     567    { 
    566568        struct ipp_codec *ippc = &ipp_codec[codec_data->codec_idx]; 
    567569 
Note: See TracChangeset for help on using the changeset viewer.