summaryrefslogtreecommitdiff
path: root/libavutil/base64.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2009-02-08 21:16:36 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2009-02-08 21:16:36 +0000
commit5118bd441d47fc56d465110cd409afbcca70e3a2 (patch)
treef7ca94face7b9288edf1aa6d8e6e7e6cf4843927 /libavutil/base64.c
parent1cc65cecb2feed9ed806222a5e1593f7d7edcf90 (diff)
Cosmetics: rename the "size" parameter of av_base64_encode() to "in_size".
Originally committed as revision 17071 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/base64.c')
-rw-r--r--libavutil/base64.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavutil/base64.c b/libavutil/base64.c
index e6b46d63e6..eb85690707 100644
--- a/libavutil/base64.c
+++ b/libavutil/base64.c
@@ -69,17 +69,17 @@ int av_base64_decode(uint8_t * out, const char *in, int out_size)
* Fixed edge cases and made it work from data (vs. strings) by Ryan.
*****************************************************************************/
-char *av_base64_encode(char *out, int out_size, const uint8_t *in, int size)
+char *av_base64_encode(char *out, int out_size, const uint8_t *in, int in_size)
{
static const char b64[] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
char *ret, *dst;
unsigned i_bits = 0;
int i_shift = 0;
- int bytes_remaining = size;
+ int bytes_remaining = in_size;
- if (size >= UINT_MAX / 4 ||
- out_size < (size+2) / 3 * 4 + 1)
+ if (in_size >= UINT_MAX / 4 ||
+ out_size < (in_size+2) / 3 * 4 + 1)
return NULL;
ret = dst = out;
while (bytes_remaining) {