Commit 117abc43 authored by hyc's avatar hyc

Add AV_BASE64_SIZE() macro


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23461 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 30052ffa
......@@ -46,4 +46,9 @@ int av_base64_decode(uint8_t *out, const char *in, int out_size);
*/
char *av_base64_encode(char *out, int out_size, const uint8_t *in, int in_size);
/**
* Calculate the output size needed to base64-encode x bytes.
*/
#define AV_BASE64_SIZE(x) (((x)+2) / 3 * 4 + 1)
#endif /* AVUTIL_BASE64_H */
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