Mercurial > libavutil.hg
changeset 930:7c8cc500e1f4 libavutil
Use AV_BASE64_SIZE() macro
author | hyc |
---|---|
date | Fri, 04 Jun 2010 01:15:41 +0000 |
parents | d0be85c9c96f |
children | 239e2d9c478a |
files | base64.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/base64.c Fri Jun 04 01:15:07 2010 +0000 +++ b/base64.c Fri Jun 04 01:15:41 2010 +0000 @@ -79,7 +79,7 @@ int bytes_remaining = in_size; if (in_size >= UINT_MAX / 4 || - out_size < (in_size+2) / 3 * 4 + 1) + out_size < AV_BASE64_SIZE(in_size)) return NULL; ret = dst = out; while (bytes_remaining) {