- Timestamp:
- Feb 21, 2018 2:28:02 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/sdp.c
r5697 r5740 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(); … … 345 346 PJ_ASSERT_RETURN(pj_strcmp2(&attr->name, "fmtp")==0, PJ_EINVALIDOP); 346 347 348 if (attr->value.slen == 0) 349 return PJMEDIA_SDP_EINATTR; 350 347 351 /* fmtp BNF: 348 352 * a=fmtp:<format> <format specific parameter> … … 382 386 383 387 PJ_ASSERT_RETURN(pj_strcmp2(&attr->name, "rtcp")==0, PJ_EINVALIDOP); 388 389 if (attr->value.slen == 0) 390 return PJMEDIA_SDP_EINATTR; 384 391 385 392 init_sdp_parser();
Note: See TracChangeset
for help on using the changeset viewer.