This creates a unique pointer that stores an empty array with the size of ASCII value of the first character of the payload. So the APP packet payload is always empty.
Moreover, even if it did work, this would not protect the payload from the problem described in #152.
I am also pretty sure that storing the payload in rtcp_app_packet as std::unique_ptr<uint8_t[]> is not that good of an idea.
Hello,
there is a mistake in the fuction send_app_packet:
Specifically, this line:
This creates a unique pointer that stores an empty array with the size of ASCII value of the first character of the payload. So the APP packet payload is always empty.
Moreover, even if it did work, this would not protect the payload from the problem described in #152.
I am also pretty sure that storing the payload in rtcp_app_packet as std::unique_ptr<uint8_t[]> is not that good of an idea.