X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavutil%2Fbase64.h;h=843e362495f406ed38c7a3cfea5d3b9bca7a01ba;hb=4d55404fcaec83f1ac2beb640198ad9399116bb8;hp=5658ee837a7d5f4093fe970c1f1316051d27cba4;hpb=034ef0e8c366f032cd9efab14daca3959768e4c1;p=ffmpeg diff --git a/libavutil/base64.h b/libavutil/base64.h index 5658ee837a7..843e362495f 100644 --- a/libavutil/base64.h +++ b/libavutil/base64.h @@ -1,5 +1,4 @@ /* - * Base64.c * Copyright (c) 2006 Ryan Martell. (rdm4@martellventures.com) * * This file is part of FFmpeg. @@ -19,15 +18,22 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#ifndef AVUTIL_BASE64_H +#define AVUTIL_BASE64_H + +#include + /** - * decodes base64 - * param order as strncpy() + * Decodes Base64. + * Parameter order is the same as strncpy(). */ int av_base64_decode(uint8_t * out, const char *in, int out_length); /** - * encodes base64 + * Encodes Base64. * @param src data, not a string + * @param buf output string */ -char *av_base64_encode(uint8_t * src, int len); +char *av_base64_encode(char * buf, int buf_len, const uint8_t * src, int len); +#endif /* AVUTIL_BASE64_H */