mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
Mark the source buffer as "const"
Originally committed as revision 10877 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
ecdcbbf66a
commit
e76e2bbc09
@ -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.
|
* 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[] =
|
static const char b64[] =
|
||||||
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
||||||
|
@ -35,6 +35,6 @@ int av_base64_decode(uint8_t * out, const char *in, int out_length);
|
|||||||
* @param src data, not a string
|
* @param src data, not a string
|
||||||
* @param buf output 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 */
|
#endif /* FFMPEG_BASE64_H */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user