mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-16 04:32:47 +02:00
4171581953
The resample asm code as it is currently handles 1 sample at a time The asm code should be redesigned and handle more than 1 sample at a time. That is the whole purpose of SIMD. There is also multiple samples available that need identical handling like from several channels or similar handling from other points in time. Such redesign would make the resampler faster and would change the requirements of padding and maybe memory layout. So it seems simpler to just avoid overwriting in the asm as it is today than to have the allocation handle specific overallocation for asm code that ideally should be redesigned Fixes writing 16bits over the end of the array This is an alternative fix for https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23053 Found-by: Ivan Grigorev <ivangrigoriev@meta.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>