changeset 401:07e951242617 libavutil

Reindent the code after last commit
author lucabe
date Thu, 08 Nov 2007 11:59:39 +0000
parents 97fe561c8999
children eea6f94a791b
files base64.c
diffstat 1 files changed, 11 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/base64.c	Thu Nov 08 11:56:50 2007 +0000
+++ b/base64.c	Thu Nov 08 11:59:39 2007 +0000
@@ -83,18 +83,18 @@
         buf_len < len * 4 / 3 + 12)
         return NULL;
     ret = dst = buf;
-        while (bytes_remaining) {
-            i_bits = (i_bits << 8) + *src++;
-            bytes_remaining--;
-            i_shift += 8;
+    while (bytes_remaining) {
+        i_bits = (i_bits << 8) + *src++;
+        bytes_remaining--;
+        i_shift += 8;
 
-            do {
-                *dst++ = b64[(i_bits << 6 >> i_shift) & 0x3f];
-                i_shift -= 6;
-            } while (i_shift > 6 || (bytes_remaining == 0 && i_shift > 0));
-        }
-        while ((dst - ret) & 3)
-            *dst++ = '=';
+        do {
+            *dst++ = b64[(i_bits << 6 >> i_shift) & 0x3f];
+            i_shift -= 6;
+        } while (i_shift > 6 || (bytes_remaining == 0 && i_shift > 0));
+    }
+    while ((dst - ret) & 3)
+        *dst++ = '=';
     *dst = '\0';
 
     return ret;