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
1f8a6bef
Commit
1f8a6bef
authored
Apr 03, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avutil/log: add code to test av_log()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
5a18b215
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
Makefile
libavutil/Makefile
+1
-0
log.c
libavutil/log.c
+23
-0
No files found.
libavutil/Makefile
View file @
1f8a6bef
...
...
@@ -158,6 +158,7 @@ TESTPROGS = adler32 \
lfg
\
lls1
\
lls2
\
log
\
md5
\
murmur3
\
opt
\
...
...
libavutil/log.c
View file @
1f8a6bef
...
...
@@ -375,3 +375,26 @@ void avpriv_report_missing_feature(void *avc, const char *msg, ...)
missing_feature_sample
(
0
,
avc
,
msg
,
argument_list
);
va_end
(
argument_list
);
}
#ifdef TEST
// LCOV_EXCL_START
#include <string.h>
int
main
(
int
argc
,
char
**
argv
)
{
int
i
;
av_log_set_level
(
AV_LOG_DEBUG
);
for
(
use_color
=
0
;
use_color
<=
256
;
use_color
=
255
*
use_color
+
1
)
{
av_log
(
NULL
,
AV_LOG_FATAL
,
"use_color: %d
\n
"
,
use_color
);
for
(
i
=
AV_LOG_DEBUG
;
i
>=
AV_LOG_QUIET
;
i
-=
8
)
{
av_log
(
NULL
,
i
,
" %d"
,
i
);
av_log
(
NULL
,
AV_LOG_INFO
,
"e "
);
av_log
(
NULL
,
i
+
256
*
123
,
"C%d"
,
i
);
av_log
(
NULL
,
AV_LOG_INFO
,
"e"
);
}
av_log
(
NULL
,
AV_LOG_PANIC
,
"
\n
"
);
}
return
0
;
}
// LCOV_EXCL_STOP
#endif
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