OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d449c8
)
dump: Use the correct abs() version
author
Vittorio Giovara
<vittorio.giovara@gmail.com>
Tue, 30 Jun 2015 13:38:46 +0000
(15:38 +0200)
committer
Vittorio Giovara
<vittorio.giovara@gmail.com>
Tue, 30 Jun 2015 23:13:58 +0000
(
00:13
+0100)
Fix warning from clang "absolute value function 'abs' given an argument
of type 'long long' but has parameter of type 'int' which may cause
truncation of value [-Wabsolute-value]".
libavformat/dump.c
patch
|
blob
|
history
diff --git
a/libavformat/dump.c
b/libavformat/dump.c
index
3248e56
..
22ae586
100644
(file)
--- a/
libavformat/dump.c
+++ b/
libavformat/dump.c
@@
-479,7
+479,7
@@
void av_dump_format(AVFormatContext *ic, int index,
int secs, us;
av_log(NULL, AV_LOG_INFO, ", start: ");
secs = ic->start_time / AV_TIME_BASE;
- us = abs(ic->start_time % AV_TIME_BASE);
+ us =
ll
abs(ic->start_time % AV_TIME_BASE);
av_log(NULL, AV_LOG_INFO, "%d.%06d",
secs, (int) av_rescale(us, 1000000, AV_TIME_BASE));
}