1MP4(3) MP4 File Format Library MP4(3)
2
3
4
6 MP4BinaryToBase64 - Convert binary data to a base 64 string
7
9 #include <mp4.h>
10
11 char* MP4BinaryToBase64(
12 const u_int8_t* pData,
13 u_int32_t dataSize
14 )
15
17 pData Specifies the pointer to the binary data.
18
19 dataSize
20 Specifies the size in bytes of the binary data.
21
23 Upon success, a null terminated string representing the data in base
24 64. Upon error, NULL.
25
27 MP4BinaryToBase64 converts binary data to a base 64 string. This encod‐
28 ing maps groups of 6 bits into the character set [A-Za-z0-9+/=]. The
29 string is in malloc'd memory, so the caller is responsible for free'ing
30 the memory.
31
32 This utility is useful for generating the SDP descriptions for some RTP
33 payloads.
34
35 Example: 0x12, 0xAB -> "Eqs="
36
38 MP4(3)
39
40
41
42Cisco Systems Inc. Version 0.9 MP4(3)