1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-28 20:53:54 +02:00

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

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