--- libavcodec/mathops.h.orig	2023-02-27 21:43:45.000000000 +0100
+++ libavcodec/mathops.h	2023-05-12 21:26:11.034208836 +0200
@@ -26,7 +26,9 @@
 
 #include "libavutil/attributes_internal.h"
 #include "libavutil/common.h"
+#ifndef ADM_LAV_NO_CONFIG
 #include "config.h"
+#endif
 
 #define MAX_NEG_CROP 1024
 
