1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-07-12 23:50:50 +02:00

lavfi/vignette: fix scale with aspects smaller than one.

This commit is contained in:
Clément Bœsch 2013-05-30 20:40:39 +02:00
parent 826b3a75cd
commit cf6f179044

View File

@ -285,7 +285,7 @@ static int config_props(AVFilterLink *inlink)
s->yscale = 1; s->yscale = 1;
s->dmax = hypot(inlink->w / 2., s->yscale * inlink->h / 2.); s->dmax = hypot(inlink->w / 2., s->yscale * inlink->h / 2.);
} else { } else {
s->yscale = av_q2d(sar); s->yscale = av_q2d(av_inv_q(sar));
s->xscale = 1; s->xscale = 1;
s->dmax = hypot(s->xscale * inlink->w / 2., inlink->h / 2.); s->dmax = hypot(s->xscale * inlink->w / 2., inlink->h / 2.);
} }