From 784824a68c00d95dd81085483950b92203345a65 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 4 Jun 2010 01:15:41 +0000 Subject: Use AV_BASE64_SIZE() macro Originally committed as revision 23462 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/httpauth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/httpauth.c') 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); -- cgit v1.2.3