[SCM] libav/experimental: Mark the source buffer as "const"
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:08:50 UTC 2013
The following commit has been merged in the experimental branch:
commit e76e2bbc0937ff456e1f4ad5b98851fe6ccc8005
Author: Luca Abeni <lucabe72 at email.it>
Date: Tue Oct 30 15:32:52 2007 +0000
Mark the source buffer as "const"
Originally committed as revision 10877 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavutil/base64.c b/libavutil/base64.c
index bee800c..09dcf99 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 e05ead1..e95e4ea 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 */
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list