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
69bf775e
Commit
69bf775e
authored
Jun 14, 2012
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bprint: implement vsnprintf for win32.
parent
0f73ac3f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
bprint.c
libavutil/bprint.c
+19
-0
No files found.
libavutil/bprint.c
View file @
69bf775e
...
@@ -26,6 +26,25 @@
...
@@ -26,6 +26,25 @@
#include "error.h"
#include "error.h"
#include "mem.h"
#include "mem.h"
#if defined(_WIN32)
static
int
vsnprintf_fixed
(
char
*
s
,
size_t
n
,
const
char
*
format
,
va_list
va
)
{
va_list
va2
;
int
r
;
va_copy
(
va2
,
va
);
r
=
vsnprintf
(
s
,
n
,
format
,
va2
);
va_end
(
va2
);
if
(
r
==
-
1
)
r
=
_vscprintf
(
format
,
va
);
return
r
;
}
#define vsnprintf vsnprintf_fixed
#endif
#define av_bprint_room(buf) ((buf)->size - FFMIN((buf)->len, (buf)->size))
#define av_bprint_room(buf) ((buf)->size - FFMIN((buf)->len, (buf)->size))
#define av_bprint_is_allocated(buf) ((buf)->str != (buf)->reserved_internal_buffer)
#define av_bprint_is_allocated(buf) ((buf)->str != (buf)->reserved_internal_buffer)
...
...
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