History

ffmpeg: don't truncate getmaxrss value

Can lead to printing of nonsensical negative memory usage

Gyan Doshi committed 2 years ago

Commit 350146a1 parent 24660091 file · +2 −2Browse files

Unified · Split

fftools/ffmpeg.c+2−2
@@ -309,8 +309,8 @@ const AVIOInterruptCB int_cb = { decode_interrupt_cb, NULL }; · 308 unmodified lines
309static void ffmpeg_cleanup(int ret)309static void ffmpeg_cleanup(int ret)
310{310{
311 if (do_benchmark) {311 if (do_benchmark) {
312 int maxrss = getmaxrss() / 1024;312 int64_t maxrss = getmaxrss() / 1024;
313 av_log(NULL, AV_LOG_INFO, "bench: maxrss=%iKiB\n", maxrss);313 av_log(NULL, AV_LOG_INFO, "bench: maxrss=%"PRId64"KiB\n", maxrss);
314 }314 }
315 315
316 for (int i = 0; i < nb_filtergraphs; i++)316 for (int i = 0; i < nb_filtergraphs; i++)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t