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
911676c6
Commit
911676c6
authored
Dec 21, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avutil/avstring: add av_strnlen()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
1c63aed2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
2 deletions
+20
-2
APIchanges
doc/APIchanges
+4
-0
avstring.h
libavutil/avstring.h
+14
-0
version.h
libavutil/version.h
+2
-2
No files found.
doc/APIchanges
View file @
911676c6
...
...
@@ -14,6 +14,10 @@ libavutil: 2012-10-22
API changes, most recent first:
2013-12-22 - xxxxxxx - lavu 52.59.100 - avstring.h
Add av_strnlen() function.
2013-12-xx - xxxxxxx - lavu 52.57.100 - opencl.h
Add av_opencl_benchmark() function.
...
...
libavutil/avstring.h
View file @
911676c6
...
...
@@ -131,6 +131,20 @@ size_t av_strlcat(char *dst, const char *src, size_t size);
*/
size_t
av_strlcatf
(
char
*
dst
,
size_t
size
,
const
char
*
fmt
,
...)
av_printf_format
(
3
,
4
);
/**
* Get the count of continuous non zero chars starting from the beginning.
*
* @param len maximum number of characters to check in the string, that
* is the maximum value which is returned by the function
*/
static
inline
size_t
av_strnlen
(
const
char
*
s
,
size_t
len
)
{
size_t
i
;
for
(
i
=
0
;
i
<
len
&&
s
[
i
];
i
++
)
;
return
i
;
}
/**
* Print arguments following specified format into a large enough auto
* allocated buffer. It is similar to GNU asprintf().
...
...
libavutil/version.h
View file @
911676c6
...
...
@@ -75,8 +75,8 @@
*/
#define LIBAVUTIL_VERSION_MAJOR 52
#define LIBAVUTIL_VERSION_MINOR 5
8
#define LIBAVUTIL_VERSION_MICRO 10
1
#define LIBAVUTIL_VERSION_MINOR 5
9
#define LIBAVUTIL_VERSION_MICRO 10
0
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
LIBAVUTIL_VERSION_MINOR, \
...
...
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