From 352333543c04596b86a035be2f4c738482ce353e Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Sun, 24 Nov 2024 20:48:54 -0800 Subject: [PATCH] avfilter/scale_vt: implement negative width/height aspect ratio sizing Signed-off-by: Koushik Dutta Signed-off-by: Zhao Zhili --- libavfilter/vf_scale_vt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavfilter/vf_scale_vt.c b/libavfilter/vf_scale_vt.c index 05f4e7b797..07d825b1ba 100644 --- a/libavfilter/vf_scale_vt.c +++ b/libavfilter/vf_scale_vt.c @@ -189,6 +189,8 @@ static int scale_vt_config_output(AVFilterLink *outlink) if (err < 0) return err; + ff_scale_adjust_dimensions(inlink, &s->output_width, &s->output_height, 0, 1); + outlink->w = s->output_width; outlink->h = s->output_height;