Commit c270caec authored by lucabe's avatar lucabe

Reindent the code after last commit


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10958 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 9d099f1c
...@@ -83,18 +83,18 @@ char *av_base64_encode(char * buf, int buf_len, const uint8_t * src, int len) ...@@ -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) buf_len < len * 4 / 3 + 12)
return NULL; return NULL;
ret = dst = buf; ret = dst = buf;
while (bytes_remaining) { while (bytes_remaining) {
i_bits = (i_bits << 8) + *src++; i_bits = (i_bits << 8) + *src++;
bytes_remaining--; bytes_remaining--;
i_shift += 8; i_shift += 8;
do { do {
*dst++ = b64[(i_bits << 6 >> i_shift) & 0x3f]; *dst++ = b64[(i_bits << 6 >> i_shift) & 0x3f];
i_shift -= 6; i_shift -= 6;
} while (i_shift > 6 || (bytes_remaining == 0 && i_shift > 0)); } while (i_shift > 6 || (bytes_remaining == 0 && i_shift > 0));
} }
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