Browse Source

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

tags/n2.0
Clément Bœsch 12 years ago
parent
commit
cf6f179044
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/vf_vignette.c

+ 1
- 1
libavfilter/vf_vignette.c View 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.);
}


Loading…
Cancel
Save