Mercurial > libavformat.hg
changeset 6079:4518f83661f4 libavformat
Use AV_BASE64_SIZE() macro
author | hyc |
---|---|
date | Fri, 04 Jun 2010 01:15:41 +0000 |
parents | f23196c73178 |
children | c7ddd67739a6 |
files | httpauth.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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);