Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2013-05-30 22:40:39 +0400
committerClément Bœsch <ubitux@gmail.com>2013-05-30 22:40:39 +0400
commitcf6f1790444ee4d4c1ddbec0dc81e63aa7a8b97f (patch)
treeb4ff85669d897b5c2df5bb0a3f5594bad6a141af /libavfilter/vf_vignette.c
parent826b3a75cd295c03720e00d3de83e1abcbedd4b9 (diff)
lavfi/vignette: fix scale with aspects smaller than one.
Diffstat (limited to 'libavfilter/vf_vignette.c')
-rw-r--r--libavfilter/vf_vignette.c2
1 files changed, 1 insertions, 1 deletions
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.);
}