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
d6838309
Commit
d6838309
authored
Dec 06, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avutil/log: skip setting color for default (AV_LOG_INFO) level
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
2c21e2ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
log.c
libavutil/log.c
+4
-4
No files found.
libavutil/log.c
View file @
d6838309
...
...
@@ -127,19 +127,19 @@ static void colored_fputs(int level, const char *str)
}
#if HAVE_SETCONSOLETEXTATTRIBUTE
if
(
use_color
)
if
(
use_color
&&
level
!=
AV_LOG_INFO
/
8
)
SetConsoleTextAttribute
(
con
,
background
|
color
[
level
]);
fputs
(
str
,
stderr
);
if
(
use_color
)
if
(
use_color
&&
level
!=
AV_LOG_INFO
/
8
)
SetConsoleTextAttribute
(
con
,
attr_orig
);
#else
if
(
use_color
==
1
)
{
if
(
use_color
==
1
&&
level
!=
AV_LOG_INFO
/
8
)
{
fprintf
(
stderr
,
"
\033
[%d;3%dm%s
\033
[0m"
,
(
color
[
level
]
>>
4
)
&
15
,
color
[
level
]
&
15
,
str
);
}
else
if
(
use_color
==
256
)
{
}
else
if
(
use_color
==
256
&&
level
!=
AV_LOG_INFO
/
8
)
{
fprintf
(
stderr
,
"
\033
[48;5;%dm
\033
[38;5;%dm%s
\033
[0m"
,
(
color
[
level
]
>>
16
)
&
0xff
,
...
...
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