[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.

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4932 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
Nanang Izzuddin 2014-09-29 10:26:08 +00:00
parent 76e5386249
commit 55becb4ec6
1 changed files with 5 additions and 1 deletions

View File

@ -1147,7 +1147,11 @@ PJ_INLINE(pj_status_t) pjmedia_codec_amr_parse(
Q = (pj_uint8_t)(TOC & 1);
if (FT > SID_FT && FT < 14) {
pj_assert(!"Invalid AMR frametype, stream may be corrupted!");
/* Discard the whole packet (RFC4867 4.3.2) */
//pj_assert(!"Invalid AMR frametype, stream may be corrupted!");
cnt = 0;
PJ_LOG(4, ("AMR parser", "Invalid AMR frametype, stream may be "
"corrupted!"));
break;
}