From 638e9e1f87d3ee279c1247969e9fd59065be492e Mon Sep 17 00:00:00 2001 From: Tillsunset <35825944+Tillsunset@users.noreply.github.com> Date: Sun, 9 Oct 2022 01:45:26 -0500 Subject: [PATCH] Workaround for the h264 video crash on macOS (#348) --- src/Cafe/OS/libs/h264_avc/H264Dec.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Cafe/OS/libs/h264_avc/H264Dec.cpp b/src/Cafe/OS/libs/h264_avc/H264Dec.cpp index 8dbd8ecf..1441f343 100644 --- a/src/Cafe/OS/libs/h264_avc/H264Dec.cpp +++ b/src/Cafe/OS/libs/h264_avc/H264Dec.cpp @@ -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 }