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
9548deee
Commit
9548deee
authored
May 13, 2012
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavu/bprint: add av_bprint_reset().
parent
7a442233
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletion
+14
-1
avutil.h
libavutil/avutil.h
+1
-1
bprint.c
libavutil/bprint.c
+8
-0
bprint.h
libavutil/bprint.h
+5
-0
No files found.
libavutil/avutil.h
View file @
9548deee
...
...
@@ -153,7 +153,7 @@
*/
#define LIBAVUTIL_VERSION_MAJOR 51
#define LIBAVUTIL_VERSION_MINOR 5
0
#define LIBAVUTIL_VERSION_MINOR 5
1
#define LIBAVUTIL_VERSION_MICRO 100
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
...
...
libavutil/bprint.c
View file @
9548deee
...
...
@@ -119,6 +119,14 @@ void av_bprint_chars(AVBPrint *buf, char c, unsigned n)
av_bprint_grow
(
buf
,
n
);
}
void
av_bprint_clear
(
AVBPrint
*
buf
)
{
if
(
buf
->
len
)
{
*
buf
->
str
=
0
;
buf
->
len
=
0
;
}
}
int
av_bprint_finalize
(
AVBPrint
*
buf
,
char
**
ret_str
)
{
unsigned
real_size
=
FFMIN
(
buf
->
len
+
1
,
buf
->
size
);
...
...
libavutil/bprint.h
View file @
9548deee
...
...
@@ -109,6 +109,11 @@ void av_bprintf(AVBPrint *buf, const char *fmt, ...) av_printf_format(2, 3);
*/
void
av_bprint_chars
(
AVBPrint
*
buf
,
char
c
,
unsigned
n
);
/**
* Reset the string to "" but keep internal allocated data.
*/
void
av_bprint_clear
(
AVBPrint
*
buf
);
/**
* Test if the print buffer is complete (not truncated).
*
...
...
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