From 2aa15ab3ffe957ce898d0ee991087dc59832ff45 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Tue, 20 Feb 2018 13:15:41 +0300 Subject: [PATCH] ffmpeg: fix 'uchar' error > cap_ffmpeg_impl.hpp:1710:11: error: 'uchar' does not name a type --- modules/videoio/src/cap_ffmpeg_impl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/videoio/src/cap_ffmpeg_impl.hpp b/modules/videoio/src/cap_ffmpeg_impl.hpp index 48c9aa7a76..eb7a23137b 100644 --- a/modules/videoio/src/cap_ffmpeg_impl.hpp +++ b/modules/videoio/src/cap_ffmpeg_impl.hpp @@ -1707,7 +1707,7 @@ bool CvVideoWriter_FFMPEG::writeFrame( const unsigned char* data, int step, int const int CV_STEP_ALIGNMENT = 32; const size_t CV_SIMD_SIZE = 32; const size_t CV_PAGE_MASK = ~(4096 - 1); - const uchar* dataend = data + ((size_t)height * step); + const unsigned char* dataend = data + ((size_t)height * step); if (step % CV_STEP_ALIGNMENT != 0 || (((size_t)dataend - CV_SIMD_SIZE) & CV_PAGE_MASK) != (((size_t)dataend + CV_SIMD_SIZE) & CV_PAGE_MASK)) {