[SCM] libav/experimental: Remove redundant "if(len)"
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:09:12 UTC 2013
The following commit has been merged in the experimental branch:
commit cd250e581b2995c3e5581db6de77cb5726d81597
Author: Luca Abeni <lucabe72 at email.it>
Date: Thu Nov 8 11:56:50 2007 +0000
Remove redundant "if(len)"
Originally committed as revision 10957 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavutil/base64.c b/libavutil/base64.c
index 09dcf99..611a70d 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;
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list