diff options
author | Fei Wang <fei.w.wang-at-intel.com@ffmpeg.org> | 2022-08-05 14:11:19 +0800 |
---|---|---|
committer | Haihao Xiang <haihao.xiang@intel.com> | 2022-08-09 14:02:25 +0800 |
commit | 26890b6b6770214ad63fc9c9564ac75b3227f708 (patch) | |
tree | 9ce7f8481286581d11c0d9afcf54f20105e20e99 /libavfilter | |
parent | 4e0686df390908e8fb8fc0c4ef50252626c3c656 (diff) | |
download | ffmpeg-26890b6b6770214ad63fc9c9564ac75b3227f708.tar.gz |
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>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_overlay_vaapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_overlay_vaapi.c b/libavfilter/vf_overlay_vaapi.c index b3a624ae15..3e6a0de13f 100644 --- a/libavfilter/vf_overlay_vaapi.c +++ b/libavfilter/vf_overlay_vaapi.c @@ -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 }, }; |