Message ID | 20230417071603.226543-1-haihao.xiang@intel.com |
---|---|
State | Accepted |
Commit | 2aad9765efa9affbe5e1184873e839d5ffacbcd9 |
Headers | show |
Series | [FFmpeg-devel] lavfi/overlay_vaapi: set input region for overlay video to NULL | expand |
Context | Check | Description |
---|---|---|
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
On Ma, 2023-04-17 at 15:16 +0800, Xiang, Haihao wrote: > From: Haihao Xiang <haihao.xiang@intel.com> > > 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> > --- > libavfilter/vf_overlay_vaapi.c | 1 + > 1 file changed, 1 insertion(+) > > 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; > } > Applied, - Haihao
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; }