mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Reindent the code after last commit
Originally committed as revision 10958 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
cd250e581b
commit
353fa898bb
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user