On Tue, Aug 05, 2025 at 07:31:15PM +0000, Jiasheng Jiang wrote: > Move av_malloc() after the check for subsampling to avoid memory leak if subsampling < 0 and av_malloc() succeeds. > > Fixes: a41a2efc85 ("lavc/videotoolbox: add VP9 hardware acceleration") > Signed-off-by: Jiasheng Jiang > --- > libavcodec/videotoolbox_vp9.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) will apply thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Rewriting code that is poorly written but fully understood is good. Rewriting code that one doesnt understand is a sign that one is less smart than the original author, trying to rewrite it will not make it better.