lavfi/vignette: fix scale with aspects smaller than one.
authorClément Bœsch <ubitux@gmail.com>
Thu, 30 May 2013 18:40:39 +0000 (20:40 +0200)
committerClément Bœsch <ubitux@gmail.com>
Thu, 30 May 2013 18:40:39 +0000 (20:40 +0200)
libavfilter/vf_vignette.c

index 17af514..a570611 100644 (file)
@@ -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.);
     }