pull/4111/head
Kim Kulling 2021-11-12 11:20:22 +01:00 committed by GitHub
parent 157e032bde
commit e2ccd17494
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -131,6 +131,7 @@ inline void CopyData(size_t count, const uint8_t *src, size_t src_stride,
if (src_stride == dst_stride) {
memcpy(dst, src, count * src_stride);
return;
}
size_t sz = std::min(src_stride, dst_stride);
for (size_t i = 0; i < count; ++i) {