MCPcopy Create free account
hub / github.com/OpenHD/OpenHD / rtp_alloc

Function rtp_alloc

OpenHD/ohd_video/src/openhd_rtp.cpp:35–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33#include "rtp_eof_helper.h"
34
35static void* rtp_alloc(void* /*param*/, int bytes) {
36 static uint8_t buffer[2 * 1024 * 1024 + 4] = {
37 0,
38 0,
39 0,
40 1,
41 };
42 assert(bytes <= sizeof(buffer) - 4);
43 return buffer + 4;
44}
45
46static void rtp_free(void* /*param*/, void* /*packet*/) {}
47

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected