aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/base64.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2009-02-08 21:13:11 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2009-02-08 21:13:11 +0000
commit52ef50a080a2b4c61f4e98ad79f2853582f1977c (patch)
treea4f33b84a5822202152349ee6ed71533a3f46ccf /libavutil/base64.c
parent18099ade6fbacf793e1c4d75ca71906c5abd40e8 (diff)
downloadffmpeg-52ef50a080a2b4c61f4e98ad79f2853582f1977c.tar.gz
Cosmetics: prefer out/in over buf/src for the parameter names of
av_base64_encode(), for consistency/readability reasons. Originally committed as revision 17069 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 bed5d7e0ca..e6b46d63e6 100644
--- a/libavutil/base64.c
+++ b/libavutil/base64.c
@@ -69,7 +69,7 @@ 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 * buf, int buf_size, const uint8_t * src, int size)
+char *av_base64_encode(char *out, int out_size, const uint8_t *in, int size)
{
static const char b64[] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
@@ -79,11 +79,11 @@ char *av_base64_encode(char * buf, int buf_size, const uint8_t * src, int size)
int bytes_remaining = size;
if (size >= UINT_MAX / 4 ||
- buf_size < (size+2) / 3 * 4 + 1)
+ out_size < (size+2) / 3 * 4 + 1)
return NULL;
- ret = dst = buf;
+ ret = dst = out;
while (bytes_remaining) {
- i_bits = (i_bits << 8) + *src++;
+ i_bits = (i_bits << 8) + *in++;
bytes_remaining--;
i_shift += 8;