From cf6f1790444ee4d4c1ddbec0dc81e63aa7a8b97f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Thu, 30 May 2013 20:40:39 +0200 Subject: [PATCH] lavfi/vignette: fix scale with aspects smaller than one. --- libavfilter/vf_vignette.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_vignette.c b/libavfilter/vf_vignette.c index 17af5145cd..a5706112ef 100644 --- a/libavfilter/vf_vignette.c +++ b/libavfilter/vf_vignette.c @@ -285,7 +285,7 @@ static int config_props(AVFilterLink *inlink) s->yscale = 1; s->dmax = hypot(inlink->w / 2., s->yscale * inlink->h / 2.); } else { - s->yscale = av_q2d(sar); + s->yscale = av_q2d(av_inv_q(sar)); s->xscale = 1; s->dmax = hypot(s->xscale * inlink->w / 2., inlink->h / 2.); }