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
28b9ac4e
Commit
28b9ac4e
authored
Apr 03, 2014
by
Luca Barbato
Committed by
Vittorio Giovara
Apr 03, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log: Remove undefined behaviour
parent
7763118c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
log.c
libavutil/log.c
+2
-2
No files found.
libavutil/log.c
View file @
28b9ac4e
...
...
@@ -117,7 +117,7 @@ void av_log_default_callback(void *avcl, int level, const char *fmt, va_list vl)
char
line
[
1024
];
static
int
is_atty
;
AVClass
*
avc
=
avcl
?
*
(
AVClass
**
)
avcl
:
NULL
;
int
tint
=
av_clip
(
level
>>
8
,
0
,
256
)
;
unsigned
tint
=
level
&
0xff00
;
level
&=
0xff
;
...
...
@@ -157,7 +157,7 @@ void av_log_default_callback(void *avcl, int level, const char *fmt, va_list vl)
fprintf
(
stderr
,
" Last message repeated %d times
\n
"
,
count
);
count
=
0
;
}
colored_fputs
(
av_clip
(
level
>>
3
,
0
,
6
),
tint
,
line
);
colored_fputs
(
av_clip
(
level
>>
3
,
0
,
6
),
tint
>>
8
,
line
);
av_strlcpy
(
prev
,
line
,
sizeof
line
);
}
...
...
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