aboutsummaryrefslogtreecommitdiff
path: root/libavutil/base64.h
diff options
context:
space:
mode:
authorLuca Barbato2007-02-28 03:28:31 +0000
committerLuca Barbato2007-02-28 03:28:31 +0000
commitbb0eb714bd8343dfc69857914b99ccd3438430bf (patch)
tree7eae00cbd335b85068f201283c3e3ad91cdab47f /libavutil/base64.h
parentc2a29455e348f136043a0b3a23637924413180dc (diff)
get_packetheader() forgot to read the header_checksum in big packets
patch from Clemens Ladisch cladisch AT fastmail dot net (stray base64 patch reverted in the next commits) Originally committed as revision 8156 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/base64.h')
-rw-r--r--libavutil/base64.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/libavutil/base64.h b/libavutil/base64.h
index 5658ee837a..8cabd01501 100644
--- a/libavutil/base64.h
+++ b/libavutil/base64.h
@@ -27,7 +27,11 @@ int av_base64_decode(uint8_t * out, const char *in, int out_length);
/**
* encodes base64
+ * @param out string
+ * @param out_len of the string, must be at least (len * 4 / 3 + 12)
* @param src data, not a string
+ * @param len data length
+ * @return the zero terminated encoded string or NULL in case of errors
*/
-char *av_base64_encode(uint8_t * src, int len);
+char *av_base64_encode(char *out, int out_len, uint8_t * src, int len);