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 }