[FFmpeg-cvslog] avfilter/vidstabtransform: allow negative zoom.

Georg Martius git at videolan.org
Fri Sep 13 11:47:07 CEST 2013


ffmpeg | branch: master | Georg Martius <georg.martius at web.de> | Fri Sep 13 11:31:56 2013 +0200| [ad96482d67b24bbbf9808a30460e0d6c93d259dc] | committer: Clément Bœsch

avfilter/vidstabtransform: allow negative zoom.

This is useful in addition to crop=black.

Signed-off-by: Clément Bœsch <clement at stupeflix.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ad96482d67b24bbbf9808a30460e0d6c93d259dc
---

 libavfilter/vf_vidstabtransform.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_vidstabtransform.c b/libavfilter/vf_vidstabtransform.c
index ca24c46..5152325 100644
--- a/libavfilter/vf_vidstabtransform.c
+++ b/libavfilter/vf_vidstabtransform.c
@@ -65,7 +65,7 @@ static const AVOption vidstabtransform_options[] = {
     {"relative",  "consider transforms as 0: absolute, 1: relative",                OFFSETC(relative),
                    AV_OPT_TYPE_INT,    {.i64 = 1},        0, 1,    FLAGS},
     {"zoom",      "percentage to zoom >0: zoom in, <0 zoom out",                    OFFSETC(zoom),
-                   AV_OPT_TYPE_DOUBLE, {.dbl = 0},        0, 100,  FLAGS},
+                   AV_OPT_TYPE_DOUBLE, {.dbl = 0},     -100, 100,  FLAGS},
     {"optzoom",   "0: nothing, 1: determine optimal zoom (added to 'zoom')",        OFFSETC(optZoom),
                    AV_OPT_TYPE_INT,    {.i64 = 1},        0, 1,    FLAGS},
     {"interpol",  "type of interpolation",                                          OFFSETC(interpolType),



More information about the ffmpeg-cvslog mailing list