Otherwise main and overlay videos share the same input region. Note NULL pointer imples the whole overlay video will be processed.
Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -237,6 +237,7 @@ static int overlay_vaapi_blend(FFFrameSync *fs) · 236 unmodified lines | ||
| 237 | 237 | params[1].blend_state = &blend_state; |
| 238 | 238 | |
| 239 | 239 | params[1].surface = (VASurfaceID)(uintptr_t)input_overlay->data[3]; |
| 240 | + params[1].surface_region = NULL; | |
| 240 | 241 | params[1].output_region = &overlay_region; |
| 241 | 242 | } |
| 242 | 243 | |