Define AV_ERROR_MAX_STRING_SIZE after all include files to use ffmpeg define if it exists.
This commit is contained in:
parent
f32b1276df
commit
a865a555f2
|
@ -19,14 +19,14 @@
|
|||
|
||||
#include "zm.h"
|
||||
|
||||
#ifndef AV_ERROR_MAX_STRING_SIZE
|
||||
#define AV_ERROR_MAX_STRING_SIZE 64
|
||||
#endif
|
||||
|
||||
#if HAVE_LIBAVFORMAT
|
||||
|
||||
#include "zm_ffmpeg_camera.h"
|
||||
|
||||
#ifndef AV_ERROR_MAX_STRING_SIZE
|
||||
#define AV_ERROR_MAX_STRING_SIZE 64
|
||||
#endif
|
||||
|
||||
FfmpegCamera::FfmpegCamera( int p_id, const std::string &p_path, const std::string &p_method, const std::string &p_options, int p_width, int p_height, int p_colours, int p_brightness, int p_contrast, int p_hue, int p_colour, bool p_capture ) :
|
||||
Camera( p_id, FFMPEG_SRC, p_width, p_height, p_colours, ZM_SUBPIX_ORDER_DEFAULT_FOR_COLOUR(p_colours), p_brightness, p_contrast, p_hue, p_colour, p_capture ),
|
||||
mPath( p_path ),
|
||||
|
|
Loading…
Reference in New Issue