Create a buffer of the payload of the RTP packet in buffer
.
This function will internally create a subbuffer of buffer
so that a memcpy can be avoided.
this |
the RTP packet |
A new buffer with the data of the payload. |