1
0
mirror of https://git.ffmpeg.org/ffmpeg.git synced 2026-10-24 02:09:03 +03:00

avfilter/vf_hqdn3d: forget the configured width when the buffers are freed

Fixes: WDZyf7w7BNU1
Fixes: NULL pointer dereference
NULL dereference after a failed allocation Replicated through API with ASAN
Found during the review of https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24765
This commit is contained in:
Michael Niedermayer
2026-10-13 06:25:02 +02:00
committed by michaelni
parent f90f210d31
commit ca9aa7edd6

View File

@@ -254,6 +254,7 @@ static int config_input(AVFilterLink *inlink)
int i, depth;
uninit(inlink->dst);
s->width = 0;
s->hsub = desc->log2_chroma_w;
s->vsub = desc->log2_chroma_h;