Changeset 5766


Ignore:
Timestamp:
Apr 2, 2018 5:53:37 AM (6 years ago)
Author:
ming
Message:

Fixed #2106: Fixed SID counter for AMR-WB
Thanks to Alexander Traud for the patch

File:
1 edited

Legend:

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

    r5122 r5766  
    896896        if (info->frame_type == 15) /* DTX*/ 
    897897            ++dtx_cnt; 
    898         else if (info->frame_type == 8) /* SID */ 
     898        else if (info->frame_type == 8 && amr_data->enc_setting.amr_nb) /* SID */ 
     899            ++sid_cnt; 
     900        else if (info->frame_type == 9 && !amr_data->enc_setting.amr_nb) /* SID */ 
    899901            ++sid_cnt; 
    900902    } 
Note: See TracChangeset for help on using the changeset viewer.