Changeset 5742
- Timestamp:
- Feb 21, 2018 2:48:05 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/adhocs/2.7.x/pjmedia/src/pjmedia/sdp.c
r5335 r5742 257 257 PJ_ASSERT_RETURN(pj_strcmp2(&attr->name, "rtpmap")==0, PJ_EINVALIDOP); 258 258 259 PJ_ASSERT_RETURN(attr->value.slen != 0, PJMEDIA_SDP_EINATTR); 259 if (attr->value.slen == 0) 260 return PJMEDIA_SDP_EINATTR; 260 261 261 262 init_sdp_parser(); … … 342 343 PJ_ASSERT_RETURN(pj_strcmp2(&attr->name, "fmtp")==0, PJ_EINVALIDOP); 343 344 345 if (attr->value.slen == 0) 346 return PJMEDIA_SDP_EINATTR; 347 344 348 /* fmtp BNF: 345 349 * a=fmtp:<format> <format specific parameter> … … 379 383 380 384 PJ_ASSERT_RETURN(pj_strcmp2(&attr->name, "rtcp")==0, PJ_EINVALIDOP); 385 386 if (attr->value.slen == 0) 387 return PJMEDIA_SDP_EINATTR; 381 388 382 389 init_sdp_parser();
Note: See TracChangeset
for help on using the changeset viewer.