changeset 400:97fe561c8999 libavutil

Remove redundant "if(len)"
author lucabe
date Thu, 08 Nov 2007 11:56:50 +0000
parents ae3fbcfbad4c
children 07e951242617
files base64.c
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/base64.c	Fri Nov 02 19:48:13 2007 +0000
+++ b/base64.c	Thu Nov 08 11:56:50 2007 +0000
@@ -83,7 +83,6 @@
         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 @@
         }
         while ((dst - ret) & 3)
             *dst++ = '=';
-    }
     *dst = '\0';
 
     return ret;