From 06923d44ba8ecd0ec02ab424ad998720e369e206 Mon Sep 17 00:00:00 2001 From: Andy Bauer Date: Mon, 6 Jun 2016 16:27:13 -0500 Subject: [PATCH] Set VIDEO_MAX_FRAME if it is not defined --- src/zm_local_camera.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/zm_local_camera.h b/src/zm_local_camera.h index 335c06ce7..fd73d895d 100644 --- a/src/zm_local_camera.h +++ b/src/zm_local_camera.h @@ -105,6 +105,11 @@ protected: static V4L1Data v4l1_data; #endif // ZM_HAS_V4L1 +// Required on systems with v4l1 but without v4l2 headers +#ifndef VIDEO_MAX_FRAME +#define VIDEO_MAX_FRAME 32 +#endif + #if HAVE_LIBSWSCALE static AVFrame **capturePictures; _AVPIXELFORMAT imagePixFormat;