Commit cd3f2856 authored by Christophe Massiot's avatar Christophe Massiot

* ietf/rtp.h: Fix header extension size calculation.

parent a6ed936b
......@@ -109,7 +109,7 @@ static inline uint8_t *rtp_payload(uint8_t *p_rtp)
unsigned int i_size = RTP_HEADER_SIZE;
i_size += 4 * (p_rtp[0] & 0xf);
if (p_rtp[0] & 0x10) /* header extension */
i_size += 4 + (p_rtp[i_size + 2] << 8) + p_rtp[i_size + 3];
i_size += 4 * (1 + (p_rtp[i_size + 2] << 8) + p_rtp[i_size + 3]);
return p_rtp + i_size;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment