diff --git a/doc/filters.texi b/doc/filters.texi index 7708fe3662..bd394951e9 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -7853,8 +7853,15 @@ percentage to zoom (default: 0) @end table @item optzoom -if 1 then optimal zoom value is determined (default). -Optimal zoom means no (or only little) border should be visible. +set optimal zooming to avoid borders +@table @samp +@item 0 +disabled +@item 1 +optimal static zoom value is determined (only very strong movements will lead to visible borders) (default) +@item 2 +optimal adaptive zoom value is determined (no borders will be visible) +@end table Note that the value given at zoom is added to the one calculated here. diff --git a/libavfilter/vf_vidstabtransform.c b/libavfilter/vf_vidstabtransform.c index 51523253aa..40c0593bd4 100644 --- a/libavfilter/vf_vidstabtransform.c +++ b/libavfilter/vf_vidstabtransform.c @@ -67,7 +67,7 @@ static const AVOption vidstabtransform_options[] = { {"zoom", "percentage to zoom >0: zoom in, <0 zoom out", OFFSETC(zoom), 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}, + AV_OPT_TYPE_INT, {.i64 = 1}, 0, 2, FLAGS}, {"interpol", "type of interpolation", OFFSETC(interpolType), AV_OPT_TYPE_INT, {.i64 = 2}, 0, 3, FLAGS, "interpol"}, { "no", "no interpolation", 0,