[FFmpeg-cvslog] lavfi/vignette: fix scale with aspects smaller than one.
Clément Bœsch
git at videolan.org
Thu May 30 20:53:35 CEST 2013
ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Thu May 30 20:40:39 2013 +0200| [cf6f1790444ee4d4c1ddbec0dc81e63aa7a8b97f] | committer: Clément Bœsch
lavfi/vignette: fix scale with aspects smaller than one.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cf6f1790444ee4d4c1ddbec0dc81e63aa7a8b97f
---
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 17af514..a570611 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.);
}
More information about the ffmpeg-cvslog
mailing list