From: Alexander Alekhin Date: Sat, 3 Nov 2018 02:17:17 +0000 (+0000) Subject: videoio: fix build of standalone ffmpeg plugin X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~1^2~430^2~28^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c6d2f0399a706028f476f3d08358ea787503020d;p=platform%2Fupstream%2Fopencv.git videoio: fix build of standalone ffmpeg plugin --- diff --git a/modules/videoio/src/cap_ffmpeg_impl.hpp b/modules/videoio/src/cap_ffmpeg_impl.hpp index 3694bfb..17fc67e 100644 --- a/modules/videoio/src/cap_ffmpeg_impl.hpp +++ b/modules/videoio/src/cap_ffmpeg_impl.hpp @@ -48,7 +48,10 @@ #include #include -#define OPENCV_FOURCC(c1, c2, c3, c4) (((c1) & 255) + (((c2) & 255) << 8) + (((c3) & 255) << 16) + (((c4) & 255) << 24)) +#ifndef __OPENCV_BUILD +#define CV_FOURCC(c1, c2, c3, c4) (((c1) & 255) + (((c2) & 255) << 8) + (((c3) & 255) << 16) + (((c4) & 255) << 24)) +#endif + #define CALC_FFMPEG_VERSION(a,b,c) ( a<<16 | b<<8 | c ) #if defined _MSC_VER && _MSC_VER >= 1200 @@ -1197,7 +1200,7 @@ double CvCapture_FFMPEG::getProperty( int property_id ) const return codec_tag; } - return (double) OPENCV_FOURCC(codec_fourcc[0], codec_fourcc[1], codec_fourcc[2], codec_fourcc[3]); + return (double) CV_FOURCC(codec_fourcc[0], codec_fourcc[1], codec_fourcc[2], codec_fourcc[3]); case CV_FFMPEG_CAP_PROP_SAR_NUM: return _opencv_ffmpeg_get_sample_aspect_ratio(ic->streams[video_stream]).num; case CV_FFMPEG_CAP_PROP_SAR_DEN: