ffmpeg: don't truncate getmaxrss value

Can lead to printing of nonsensical negative memory usage
This commit is contained in:
Gyan Doshi 2024-07-11 14:44:16 +05:30
parent 246600974f
commit 350146a1ea
1 changed files with 2 additions and 2 deletions

View File

@ -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++)