diff options
author | Howard Chu <hyc@highlandsun.com> | 2010-06-04 01:15:41 +0000 |
---|---|---|
committer | Howard Chu <hyc@highlandsun.com> | 2010-06-04 01:15:41 +0000 |
commit | 784824a68c00d95dd81085483950b92203345a65 (patch) | |
tree | 145bcb0cf533b1c6dc5dd2e7e1856631ed0c84b3 /libavutil/base64.c | |
parent | 31878fcf430cf0f0eb39741c65ccee02b22ef785 (diff) | |
download | ffmpeg-784824a68c00d95dd81085483950b92203345a65.tar.gz |
Use AV_BASE64_SIZE() macro
Originally committed as revision 23462 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/base64.c')
-rw-r--r-- | libavutil/base64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/base64.c b/libavutil/base64.c index d84ca36984..1b70fa9f33 100644 --- a/libavutil/base64.c +++ b/libavutil/base64.c @@ -79,7 +79,7 @@ char *av_base64_encode(char *out, int out_size, const uint8_t *in, int in_size) 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) { |