Changeset 5743


Ignore:
Timestamp:
Feb 21, 2018 2:51:52 AM (21 months ago)
Author:
ming
Message:

Fixed #2095: backported r5741

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/adhocs/2.7.x/pjmedia/src/pjmedia/sdp.c

    r5742 r5743  
    15241524             */ 
    15251525            if (pj_isdigit(*m->desc.fmt[j].ptr)) { 
    1526                 unsigned pt = pj_strtoul(&m->desc.fmt[j]); 
     1526                unsigned long pt; 
     1527                pj_status_t status = pj_strtoul3(&m->desc.fmt[j], &pt, 10); 
    15271528 
    15281529                /* Payload type is between 0 and 127.  
    15291530                 */ 
    1530                 CHECK( pt <= 127, PJMEDIA_SDP_EINPT); 
     1531                CHECK( status == PJ_SUCCESS && pt <= 127, PJMEDIA_SDP_EINPT); 
    15311532 
    15321533                /* If port is not zero, then for each dynamic payload type, an 
Note: See TracChangeset for help on using the changeset viewer.