aboutsummaryrefslogtreecommitdiff
path: root/libavutil
diff options
context:
space:
mode:
authorLuca Abeni2007-11-08 11:59:39 +0000
committerLuca Abeni2007-11-08 11:59:39 +0000
commit353fa898bb743a0b2e0bb01e948c7f696d94163e (patch)
treeef123ecb09474efdc1b85ec22a52fda93e9f52bc /libavutil
parentcd250e581b2995c3e5581db6de77cb5726d81597 (diff)
Reindent the code after last commit
Originally committed as revision 10958 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/base64.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/libavutil/base64.c b/libavutil/base64.c
index 611a70d722..0f497981c2 100644
--- a/libavutil/base64.c
+++ b/libavutil/base64.c
@@ -83,18 +83,18 @@ 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;
- 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++ = '=';
+ 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++ = '=';
*dst = '\0';
return ret;