summaryrefslogtreecommitdiff
path: root/src/lib/image.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-01-05 13:20:29 +0100
committerCarl Hetherington <cth@carlh.net>2026-01-05 13:20:43 +0100
commit0e44231b81126ad2208413af712c3dea1fa23570 (patch)
tree26c39b360413610fa6c0791df2830e07609ace67 /src/lib/image.cc
parent65027953889572e78395fb2c0f184d5f3ffe3941 (diff)
Fix valgrind support.
Diffstat (limited to 'src/lib/image.cc')
-rw-r--r--src/lib/image.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/image.cc b/src/lib/image.cc
index e7cfd2dcd..de57ee877 100644
--- a/src/lib/image.cc
+++ b/src/lib/image.cc
@@ -44,7 +44,7 @@ extern "C" {
#include <libswscale/swscale.h>
}
LIBDCP_ENABLE_WARNINGS
-#if HAVE_VALGRIND_MEMCHECK_H
+#if DCPOMATIC_HAVE_VALGRIND_MEMCHECK_H
#include <valgrind/memcheck.h>
#endif
#include <iostream>
@@ -1303,7 +1303,7 @@ Image::allocate()
^^^^ out of bounds
*/
_data[i] = (uint8_t *) wrapped_av_malloc(_stride[i] * (sample_size(i).height + 1) + ALIGNMENT);
-#if HAVE_VALGRIND_MEMCHECK_H
+#ifdef DCPOMATIC_HAVE_VALGRIND_MEMCHECK_H
/* The data between the end of the line size and the stride is undefined but processed by
libswscale, causing lots of valgrind errors. Mark it all defined to quell these errors.
*/