Re: [FFmpeg-devel] [PATCH v2] avcodec/vvc: Don't use large array on stack

2024-09-20 Thread Zhao Zhili
> On Sep 20, 2024, at 11:43, Zhao Zhili wrote: > > From: Zhao Zhili > > tmp_array in dmvr_hv takes 33024 bytes on stack, which can be > dangerous. I prefer version 3 personally https://ffmpeg.org/pipermail/ffmpeg-devel/2024-September/333709.html > --- > libavcodec/vvc/ctu.h |

[FFmpeg-devel] [PATCH v2] avcodec/vvc: Don't use large array on stack

2024-09-19 Thread Zhao Zhili
From: Zhao Zhili tmp_array in dmvr_hv takes 33024 bytes on stack, which can be dangerous. --- libavcodec/vvc/ctu.h | 1 + libavcodec/vvc/dsp.h | 2 +- libavcodec/vvc/inter.c | 2 +- libavcodec/vvc/inter_template.c | 12 +++- libavcodec/x86/vvc/vvcdsp