Skip to content

Commit 25518a1

Browse files
committed
Merge pull request opencv#10908 from alalek:fix_ffmpeg_uchar
2 parents 53305d4 + 2aa15ab commit 25518a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/videoio/src/cap_ffmpeg_impl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1707,7 +1707,7 @@ bool CvVideoWriter_FFMPEG::writeFrame( const unsigned char* data, int step, int
17071707
const int CV_STEP_ALIGNMENT = 32;
17081708
const size_t CV_SIMD_SIZE = 32;
17091709
const size_t CV_PAGE_MASK = ~(4096 - 1);
1710-
const uchar* dataend = data + ((size_t)height * step);
1710+
const unsigned char* dataend = data + ((size_t)height * step);
17111711
if (step % CV_STEP_ALIGNMENT != 0 ||
17121712
(((size_t)dataend - CV_SIMD_SIZE) & CV_PAGE_MASK) != (((size_t)dataend + CV_SIMD_SIZE) & CV_PAGE_MASK))
17131713
{

0 commit comments

Comments
 (0)