This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 755b6bdfd5a9d2bbf94434b9c3e7608364355e37 Author: Kacper Michajłow <[email protected]> AuthorDate: Wed Sep 23 20:39:09 2026 +0200 Commit: Kacper Michajłow <[email protected]> CommitDate: Tue Sep 29 22:39:11 2026 +0200 swresample/tests/swresample: align the sample buffers They are plain byte arrays on the stack but are read and written as samples of up to double size. Signed-off-by: Kacper Michajłow <[email protected]> --- libswresample/tests/swresample.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libswresample/tests/swresample.c b/libswresample/tests/swresample.c index 965b2d3002..8ee35e1e21 100644 --- a/libswresample/tests/swresample.c +++ b/libswresample/tests/swresample.c @@ -22,6 +22,7 @@ #include "libavutil/avassert.h" #include "libavutil/channel_layout.h" #include "libavutil/common.h" +#include "libavutil/mem_internal.h" #include "libavutil/opt.h" #include "libswresample/swresample.h" @@ -222,9 +223,9 @@ int main(int argc, char **argv){ int in_sample_rate, out_sample_rate, ch ,i, flush_count; AVChannelLayout in_ch_layout = { 0 }, out_ch_layout = { 0 }; enum AVSampleFormat in_sample_fmt, out_sample_fmt; - uint8_t array_in[SAMPLES*8*8]; - uint8_t array_mid[SAMPLES*8*8*3]; - uint8_t array_out[SAMPLES*8*8+100]; + LOCAL_ALIGNED(32, uint8_t, array_in, [SAMPLES*8*8]); + LOCAL_ALIGNED(32, uint8_t, array_mid, [SAMPLES*8*8*3]); + LOCAL_ALIGNED(32, uint8_t, array_out, [SAMPLES*8*8+100]); uint8_t *ain[SWR_CH_MAX]; uint8_t *aout[SWR_CH_MAX]; uint8_t *amid[SWR_CH_MAX]; -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
