avfilter/vidstabtransform: allow negative zoom.
authorGeorg Martius <georg.martius@web.de>
Fri, 13 Sep 2013 09:31:56 +0000 (11:31 +0200)
committerClément Bœsch <clement@stupeflix.com>
Fri, 13 Sep 2013 09:46:44 +0000 (11:46 +0200)
This is useful in addition to crop=black.

Signed-off-by: Clément Bœsch <clement@stupeflix.com>
libavfilter/vf_vidstabtransform.c

index ca24c46..5152325 100644 (file)
@@ -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),