mirror of
https://github.com/izzy2lost/WeeU.git
synced 2026-07-06 00:19:59 -07:00
Workaround for the h264 video crash on macOS (#348)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user