Commit cd250e58 authored by Luca Abeni's avatar Luca Abeni

Remove redundant "if(len)"

Originally committed as revision 10957 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent f9e4ed19
...@@ -83,7 +83,6 @@ char *av_base64_encode(char * buf, int buf_len, const uint8_t * src, int len) ...@@ -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) buf_len < len * 4 / 3 + 12)
return NULL; return NULL;
ret = dst = buf; ret = dst = buf;
if (len) { // special edge case, what should we really do here?
while (bytes_remaining) { while (bytes_remaining) {
i_bits = (i_bits << 8) + *src++; i_bits = (i_bits << 8) + *src++;
bytes_remaining--; bytes_remaining--;
...@@ -96,7 +95,6 @@ char *av_base64_encode(char * buf, int buf_len, const uint8_t * src, int len) ...@@ -96,7 +95,6 @@ char *av_base64_encode(char * buf, int buf_len, const uint8_t * src, int len)
} }
while ((dst - ret) & 3) while ((dst - ret) & 3)
*dst++ = '='; *dst++ = '=';
}
*dst = '\0'; *dst = '\0';
return ret; return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment