Changeset 4932


Ignore:
Timestamp:
Sep 29, 2014 10:26:08 AM (10 years ago)
Author:
nanang
Message:

[SIPit31] Misc (re #1782): Updated AMR parser behavior, i.e: from raising assertion to just printing log and also discard the whole packet, on receiving invalid AMR frame-type.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia-codec/amr_helper.h

    r3841 r4932  
    11481148 
    11491149        if (FT > SID_FT && FT < 14) { 
    1150             pj_assert(!"Invalid AMR frametype, stream may be corrupted!"); 
     1150            /* Discard the whole packet (RFC4867 4.3.2) */ 
     1151            //pj_assert(!"Invalid AMR frametype, stream may be corrupted!"); 
     1152            cnt = 0; 
     1153            PJ_LOG(4, ("AMR parser", "Invalid AMR frametype, stream may be " 
     1154                       "corrupted!")); 
    11511155            break; 
    11521156        } 
Note: See TracChangeset for help on using the changeset viewer.