diff options
author | Haihao Xiang <haihao.xiang@intel.com> | 2023-04-12 10:32:51 +0800 |
---|---|---|
committer | Haihao Xiang <haihao.xiang@intel.com> | 2023-04-24 13:24:41 +0800 |
commit | 2aad9765efa9affbe5e1184873e839d5ffacbcd9 (patch) | |
tree | de410800f7d14466805457719db4ba290961fb9f | |
parent | a9a2ddaea8318cec43ca916b6b8350f0cf14411d (diff) | |
download | ffmpeg-2aad9765efa9affbe5e1184873e839d5ffacbcd9.tar.gz |
lavfi/overlay_vaapi: set input region for overlay video to NULL
Otherwise main and overlay videos share the same input region. Note NULL
pointer imples the whole overlay video will be processed.
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
-rw-r--r-- | libavfilter/vf_overlay_vaapi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/vf_overlay_vaapi.c b/libavfilter/vf_overlay_vaapi.c index 16d1e0e211..92227ead7f 100644 --- a/libavfilter/vf_overlay_vaapi.c +++ b/libavfilter/vf_overlay_vaapi.c @@ -237,6 +237,7 @@ static int overlay_vaapi_blend(FFFrameSync *fs) params[1].blend_state = &blend_state; params[1].surface = (VASurfaceID)(uintptr_t)input_overlay->data[3]; + params[1].surface_region = NULL; params[1].output_region = &overlay_region; } |