Temporary fix ftbfs on ARM 32 ()

Double free or corruption due to an undersized buffer. Thanks to
Bernhard Übelacker <bernhardu@mailbox.org> for the patch
This commit is contained in:
Matteo Bini 2024-07-28 19:00:22 +02:00
parent b1600d9926
commit 59f21d2e13

@ -26,7 +26,7 @@ public:
{
// FFmpeg uses various assembly optimizations which expect
// input data to be aligned by up to 32 bytes (e.g. AVX)
this->input = (float*) av_malloc(sizeof(float) * input_size);
this->input = (float*) av_malloc(sizeof(float) * (input_size + 2));
}
virtual ~FFTPlan()