mirror of https://git.ffmpeg.org/ffmpeg.git
ffmpeg: don't truncate getmaxrss value
Can lead to printing of nonsensical negative memory usage
This commit is contained in:
parent
246600974f
commit
350146a1ea
|
@ -309,8 +309,8 @@ const AVIOInterruptCB int_cb = { decode_interrupt_cb, NULL };
|
|||
static void ffmpeg_cleanup(int ret)
|
||||
{
|
||||
if (do_benchmark) {
|
||||
int maxrss = getmaxrss() / 1024;
|
||||
av_log(NULL, AV_LOG_INFO, "bench: maxrss=%iKiB\n", maxrss);
|
||||
int64_t maxrss = getmaxrss() / 1024;
|
||||
av_log(NULL, AV_LOG_INFO, "bench: maxrss=%"PRId64"KiB\n", maxrss);
|
||||
}
|
||||
|
||||
for (int i = 0; i < nb_filtergraphs; i++)
|
||||
|
|
Loading…
Reference in New Issue