[FFmpeg-cvslog] r10957 - trunk/libavutil/base64.c

lucabe subversion
Thu Nov 8 12:56:50 CET 2007


Author: lucabe
Date: Thu Nov  8 12:56:50 2007
New Revision: 10957

Log:
Remove redundant "if(len)"


Modified:
   trunk/libavutil/base64.c

Modified: trunk/libavutil/base64.c
==============================================================================
--- trunk/libavutil/base64.c	(original)
+++ trunk/libavutil/base64.c	Thu Nov  8 12:56:50 2007
@@ -83,7 +83,6 @@ char *av_base64_encode(char * buf, int b
         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 b
         }
         while ((dst - ret) & 3)
             *dst++ = '=';
-    }
     *dst = '\0';
 
     return ret;




More information about the ffmpeg-cvslog mailing list