diff options
author | Luca Abeni <lucabe72@email.it> | 2007-11-08 11:56:50 +0000 |
---|---|---|
committer | Luca Abeni <lucabe72@email.it> | 2007-11-08 11:56:50 +0000 |
commit | cd250e581b2995c3e5581db6de77cb5726d81597 (patch) | |
tree | edb8aaf6546db58fb72fa648fea5e86bc295a723 /libavutil/base64.c | |
parent | f9e4ed19d20103220b51bf1d2bd661fc48224036 (diff) | |
download | ffmpeg-cd250e581b2995c3e5581db6de77cb5726d81597.tar.gz |
Remove redundant "if(len)"
Originally committed as revision 10957 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/base64.c')
-rw-r--r-- | libavutil/base64.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libavutil/base64.c b/libavutil/base64.c index 09dcf99567..611a70d722 100644 --- a/libavutil/base64.c +++ b/libavutil/base64.c @@ -83,7 +83,6 @@ char *av_base64_encode(char * buf, int buf_len, const uint8_t * src, int len) buf_len < len * 4 / 3 + 12) return NULL; ret = dst = buf; - if (len) { // special edge case, what should we really do here? while (bytes_remaining) { i_bits = (i_bits << 8) + *src++; bytes_remaining--; @@ -96,7 +95,6 @@ char *av_base64_encode(char * buf, int buf_len, const uint8_t * src, int len) } while ((dst - ret) & 3) *dst++ = '='; - } *dst = '\0'; return ret; |