Changeset 3325 for pjproject/trunk/pjmedia/src/pjmedia/rtp.c
- Timestamp:
- Sep 28, 2010 8:26:51 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/rtp.c
r2904 r3325 181 181 *payload = ((pj_uint8_t*)pkt) + offset; 182 182 *payloadlen = pkt_len - offset; 183 184 /* Remove payload padding if any */ 185 if ((*hdr)->p && *payloadlen > 0) { 186 pj_uint8_t pad_len; 187 188 pad_len = ((pj_uint8_t*)(*payload))[*payloadlen - 1]; 189 if (pad_len <= *payloadlen) 190 *payloadlen -= pad_len; 191 } 183 192 184 193 return PJ_SUCCESS;
Note: See TracChangeset
for help on using the changeset viewer.