summaryrefslogtreecommitdiff
path: root/libavformat/httpauth.c
diff options
context:
space:
mode:
authorHoward Chu <hyc@highlandsun.com>2010-06-04 01:15:41 +0000
committerHoward Chu <hyc@highlandsun.com>2010-06-04 01:15:41 +0000
commit784824a68c00d95dd81085483950b92203345a65 (patch)
tree145bcb0cf533b1c6dc5dd2e7e1856631ed0c84b3 /libavformat/httpauth.c
parent31878fcf430cf0f0eb39741c65ccee02b22ef785 (diff)
Use AV_BASE64_SIZE() macro
Originally committed as revision 23462 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/httpauth.c')
-rw-r--r--libavformat/httpauth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/httpauth.c b/libavformat/httpauth.c
index 799f84d17a..47db46b8ac 100644
--- a/libavformat/httpauth.c
+++ b/libavformat/httpauth.c
@@ -294,7 +294,7 @@ char *ff_http_auth_create_response(HTTPAuthState *state, const char *auth,
return NULL;
if (state->auth_type == HTTP_AUTH_BASIC) {
- int auth_b64_len = (strlen(auth) + 2) / 3 * 4 + 1;
+ int auth_b64_len = AV_BASE64_SIZE(strlen(auth));
int len = auth_b64_len + 30;
char *ptr;
authstr = av_malloc(len);