lavfi/overlay_vaapi: set defalut alpha value as 1.0

The present default value of 0 will render the overlay video invisible.
A default of 1.0 is consistent with most common use cases.

Signed-off-by: Fei Wang <fei.w.wang@intel.com>
Reviewed-by: Philip Langdale <philipl@overt.org>
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
This commit is contained in:
Fei Wang 2022-08-05 14:11:19 +08:00 committed by Haihao Xiang
parent 4e0686df39
commit 26890b6b67
2 changed files with 2 additions and 2 deletions

View File

@ -26183,7 +26183,7 @@ Default value is the height of input overlay video.
@item alpha
Set transparency of overlaid video. Allowed range is 0.0 to 1.0.
Higher value means lower transparency.
Default value is @code{0.0}.
Default value is @code{1.0}.
@end table

View File

@ -380,7 +380,7 @@ static const AVOption overlay_vaapi_options[] = {
{ "h", "Overlay height",
OFFSET(overlay_oh), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INT_MAX, .flags = FLAGS },
{ "alpha", "Overlay global alpha",
OFFSET(alpha), AV_OPT_TYPE_FLOAT, { .dbl = 0.0}, 0.0, 1.0, .flags = FLAGS},
OFFSET(alpha), AV_OPT_TYPE_FLOAT, { .dbl = 1.0}, 0.0, 1.0, .flags = FLAGS},
{ NULL },
};