summaryrefslogtreecommitdiff
path: root/libavutil/base64.h
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2013-01-01 18:19:07 +0100
committerStefano Sabatini <stefasab@gmail.com>2013-01-02 23:52:35 +0100
commit69d75dc4dd10a0bd70b6d0d0b27733b373da1277 (patch)
treecc4b6c7ed830a757507b5a5ec19ce1302bc55f88 /libavutil/base64.h
parent49a78e6b8cbd83d070920b8250a4cf58a6b70d8e (diff)
lavu/base64: extend/clarify doxy for the base64 API
Also improve overall consistency.
Diffstat (limited to 'libavutil/base64.h')
-rw-r--r--libavutil/base64.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/libavutil/base64.h b/libavutil/base64.h
index b095576130..514498eac8 100644
--- a/libavutil/base64.h
+++ b/libavutil/base64.h
@@ -46,15 +46,17 @@ int av_base64_decode(uint8_t *out, const char *in, int out_size);
* Encode data to base64 and null-terminate.
*
* @param out buffer for encoded data
- * @param out_size size in bytes of the output buffer, must be at
- * least AV_BASE64_SIZE(in_size)
- * @param in_size size in bytes of the 'in' buffer
- * @return 'out' or NULL in case of error
+ * @param out_size size in bytes of the out buffer (including the
+ * null terminator), must be at least AV_BASE64_SIZE(in_size)
+ * @param in input buffer containing the data to encode
+ * @param in_size size in bytes of the in buffer
+ * @return out or NULL in case of error
*/
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.
+ * Calculate the output size needed to base64-encode x bytes to a
+ * null-terminated string.
*/
#define AV_BASE64_SIZE(x) (((x)+2) / 3 * 4 + 1)