Mercurial > libavformat.hg
diff httpauth.c @ 6079:4518f83661f4 libavformat
Use AV_BASE64_SIZE() macro
author | hyc |
---|---|
date | Fri, 04 Jun 2010 01:15:41 +0000 |
parents | 54d3a9240339 |
children | 054de75e4a49 |
line wrap: on
line diff
--- a/httpauth.c Thu Jun 03 20:41:04 2010 +0000 +++ b/httpauth.c Fri Jun 04 01:15:41 2010 +0000 @@ -294,7 +294,7 @@ 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);