This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit d832b7ed05f047729d11571d6d9b6c83509920b3 Author: Kacper Michajłow <[email protected]> AuthorDate: Tue Aug 11 16:13:27 2026 +0200 Commit: Kacper Michajłow <[email protected]> CommitDate: Wed Aug 12 17:21:06 2026 +0200 avutil/timer: fix ignored read() result Signed-off-by: Kacper Michajłow <[email protected]> --- libavutil/timer.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavutil/timer.h b/libavutil/timer.h index 03706b0d10..d253e62ec0 100644 --- a/libavutil/timer.h +++ b/libavutil/timer.h @@ -140,7 +140,8 @@ #define STOP_TIMER(id) \ ioctl(linux_perf_fd, PERF_EVENT_IOC_DISABLE, 0); \ - read(linux_perf_fd, &tperf, sizeof(tperf)); \ + if (read(linux_perf_fd, &tperf, sizeof(tperf)) != sizeof(tperf)) \ + tperf = 0; \ TIMER_REPORT(id, tperf) #elif CONFIG_MACOS_KPERF _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
