changeset 397:62575220eb1a libavutil

Mark the source buffer as "const"
author lucabe
date Tue, 30 Oct 2007 15:32:52 +0000
parents ba659469f48f
children d525bf15ea54
files base64.c base64.h
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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+/";
--- 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 */