[FFmpeg-cvslog] r10877 - in trunk/libavutil: base64.c base64.h

lucabe subversion
Tue Oct 30 16:32:53 CET 2007


Author: lucabe
Date: Tue Oct 30 16:32:52 2007
New Revision: 10877

Log:
Mark the source buffer as "const"


Modified:
   trunk/libavutil/base64.c
   trunk/libavutil/base64.h

Modified: trunk/libavutil/base64.c
==============================================================================
--- trunk/libavutil/base64.c	(original)
+++ trunk/libavutil/base64.c	Tue Oct 30 16:32:52 2007
@@ -70,7 +70,7 @@ int av_base64_decode(uint8_t * out, cons
 * 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+/";

Modified: trunk/libavutil/base64.h
==============================================================================
--- trunk/libavutil/base64.h	(original)
+++ trunk/libavutil/base64.h	Tue Oct 30 16:32:52 2007
@@ -35,6 +35,6 @@ int av_base64_decode(uint8_t * out, cons
  * @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 */




More information about the ffmpeg-cvslog mailing list