summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavutil/base64.c2
-rw-r--r--libavutil/base64.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/base64.c b/libavutil/base64.c
index bee800c824..09dcf99567 100644
--- a/libavutil/base64.c
+++ b/libavutil/base64.c
@@ -70,7 +70,7 @@ int av_base64_decode(uint8_t * out, const char *in, int out_length)
* fixed edge cases and made it work from data (vs. strings) by ryan.
*****************************************************************************/
-char *av_base64_encode(char * buf, int buf_len, uint8_t * src, int len)
+char *av_base64_encode(char * buf, int buf_len, const uint8_t * src, int len)
{
static const char b64[] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
diff --git a/libavutil/base64.h b/libavutil/base64.h
index e05ead1e03..e95e4ea3e3 100644
--- a/libavutil/base64.h
+++ b/libavutil/base64.h
@@ -35,6 +35,6 @@ int av_base64_decode(uint8_t * out, const char *in, int out_length);
* @param src data, not a string
* @param buf output string
*/
-char *av_base64_encode(char * buf, int buf_len, uint8_t * src, int len);
+char *av_base64_encode(char * buf, int buf_len, const uint8_t * src, int len);
#endif /* FFMPEG_BASE64_H */