avfilter/scale_vt: implement negative width/height aspect ratio sizing

Signed-off-by: Koushik Dutta <koushd@gmail.com>
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
Koushik Dutta 2024-11-24 20:48:54 -08:00 committed by Zhao Zhili
parent 7104818066
commit 352333543c

View File

@ -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;