1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Add AV_BASE64_SIZE() macro

Originally committed as revision 23461 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Howard Chu 2010-06-04 01:15:07 +00:00
parent 27b0d365e8
commit 31878fcf43

View File

@ -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 */