Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
ea4da948
Commit
ea4da948
authored
Jan 20, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
base64: simplify end handling in av_base64_encode()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
112bca91
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
base64.c
libavutil/base64.c
+3
-6
No files found.
libavutil/base64.c
View file @
ea4da948
...
...
@@ -99,14 +99,11 @@ char *av_base64_encode(char *out, int out_size, const uint8_t *in, int in_size)
i_bits
=
(
i_bits
<<
8
)
+
*
in
++
;
bytes_remaining
--
;
i_shift
+=
8
;
do
{
}
while
(
i_shift
>
0
)
{
*
dst
++
=
b64
[(
i_bits
<<
6
>>
i_shift
)
&
0x3f
];
i_shift
-=
6
;
}
while
(
i_shift
>
6
);
}
if
(
i_shift
>
0
)
*
dst
++
=
b64
[(
i_bits
<<
6
>>
i_shift
)
&
0x3f
];
while
((
dst
-
ret
)
&
3
)
*
dst
++
=
'='
;
*
dst
=
'\0'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment