From a22dd28e0272ec0f1cfee8811d3f5f0392827c65 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Mon, 20 Dec 2021 15:03:21 +0000 Subject: [PATCH] videoio: fix ffmpeg standalone build --- modules/videoio/src/cap_ffmpeg_impl.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/videoio/src/cap_ffmpeg_impl.hpp b/modules/videoio/src/cap_ffmpeg_impl.hpp index d5be759f43..a724d7f724 100644 --- a/modules/videoio/src/cap_ffmpeg_impl.hpp +++ b/modules/videoio/src/cap_ffmpeg_impl.hpp @@ -67,6 +67,10 @@ #ifndef CV_UNUSED // Required for standalone compilation mode (OpenCV defines this in base.hpp) #define CV_UNUSED(name) (void)name #endif +#ifndef CV_Assert // Required for standalone compilation mode (OpenCV defines this in base.hpp) +#include +#define CV_Assert(expr) assert(expr) +#endif #ifdef __cplusplus extern "C" {