# HG changeset patch # User lucabe # Date 1193758372 0 # Node ID 62575220eb1a10a56f1a64f06bedf81334b1e7ae # Parent ba659469f48f0502be2e6bd817f42c15620238f8 Mark the source buffer as "const" diff -r ba659469f48f -r 62575220eb1a base64.c --- a/base64.c Sat Oct 20 14:45:07 2007 +0000 +++ b/base64.c Tue Oct 30 15:32:52 2007 +0000 @@ -70,7 +70,7 @@ * 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 -r ba659469f48f -r 62575220eb1a base64.h --- a/base64.h Sat Oct 20 14:45:07 2007 +0000 +++ b/base64.h Tue Oct 30 15:32:52 2007 +0000 @@ -35,6 +35,6 @@ * @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 */