diff options
author | Clément Bœsch <ubitux@gmail.com> | 2013-05-30 20:41:37 +0200 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2013-05-30 20:41:37 +0200 |
commit | bfafcc4ebe633d23961a079b888e836d7d2154e6 (patch) | |
tree | 77e94c3670069fbb78f293b432690305dabec01b | |
parent | cf6f1790444ee4d4c1ddbec0dc81e63aa7a8b97f (diff) | |
download | ffmpeg-bfafcc4ebe633d23961a079b888e836d7d2154e6.tar.gz |
lavfi/vignette: simplify dmax definition.
-rw-r--r-- | libavfilter/vf_vignette.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavfilter/vf_vignette.c b/libavfilter/vf_vignette.c index a5706112ef..694d10f627 100644 --- a/libavfilter/vf_vignette.c +++ b/libavfilter/vf_vignette.c @@ -283,12 +283,11 @@ static int config_props(AVFilterLink *inlink) if (sar.num > sar.den) { s->xscale = av_q2d(sar); s->yscale = 1; - s->dmax = hypot(inlink->w / 2., s->yscale * inlink->h / 2.); } else { s->yscale = av_q2d(av_inv_q(sar)); s->xscale = 1; - s->dmax = hypot(s->xscale * inlink->w / 2., inlink->h / 2.); } + s->dmax = hypot(inlink->w / 2., inlink->h / 2.); s->fmap_linesize = FFALIGN(inlink->w, 32); s->fmap = av_malloc(s->fmap_linesize * inlink->h * sizeof(*s->fmap)); |