Workaround for the h264 video crash on macOS (#348)

This commit is contained in:
Tillsunset 2022-10-09 01:45:26 -05:00 committed by GitHub
parent b724a657e6
commit 638e9e1f87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -194,6 +194,7 @@ namespace H264
#ifdef _WIN32
return _aligned_malloc(size, alignment);
#else
size += ((size % alignment) == 0) ? 0 : alignment - (size % alignment);
return aligned_alloc(alignment, size);
#endif
}