mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 16:22:37 +00:00
vf_scale_vaapi: Apply cropping rectangle to input
This commit is contained in:
parent
ac993e73de
commit
abf35afb6f
@ -100,13 +100,13 @@ static int scale_vaapi_filter_frame(AVFilterLink *inlink, AVFrame *input_frame)
|
||||
|
||||
memset(¶ms, 0, sizeof(params));
|
||||
|
||||
// If there were top/left cropping, it could be taken into
|
||||
// account here.
|
||||
input_region = (VARectangle) {
|
||||
.x = 0,
|
||||
.y = 0,
|
||||
.width = input_frame->width,
|
||||
.height = input_frame->height,
|
||||
.x = input_frame->crop_left,
|
||||
.y = input_frame->crop_top,
|
||||
.width = input_frame->width -
|
||||
(input_frame->crop_left + input_frame->crop_right),
|
||||
.height = input_frame->height -
|
||||
(input_frame->crop_top + input_frame->crop_bottom),
|
||||
};
|
||||
|
||||
params.surface = input_surface;
|
||||
|
Loading…
Reference in New Issue
Block a user