mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
dump: Use the correct abs() version
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]".
This commit is contained in:
parent
0d449c81b3
commit
df22e30172
1 changed files with 1 additions and 1 deletions
|
|
@ -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 = llabs(ic->start_time % AV_TIME_BASE);
|
||||
av_log(NULL, AV_LOG_INFO, "%d.%06d",
|
||||
secs, (int) av_rescale(us, 1000000, AV_TIME_BASE));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue