OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27b0d36
)
Add AV_BASE64_SIZE() macro
author
Howard Chu
<hyc@highlandsun.com>
Fri, 4 Jun 2010 01:15:07 +0000
(
01:15
+0000)
committer
Howard Chu
<hyc@highlandsun.com>
Fri, 4 Jun 2010 01:15:07 +0000
(
01:15
+0000)
Originally committed as revision 23461 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavutil/base64.h
patch
|
blob
|
history
diff --git
a/libavutil/base64.h
b/libavutil/base64.h
index
103860e
..
477128a
100644
(file)
--- a/
libavutil/base64.h
+++ b/
libavutil/base64.h
@@
-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 */