vo_gpu_next: rotate target crop

Turns out libplacebo uses unrotated target crop in relation to source.
Use dst rect from VO, instead of extracting it from pl_frame, to avoid
another unrotating operation.

Fixes: a9354b36ca
This commit is contained in:
Kacper Michajłow 2024-04-13 21:39:35 +02:00
parent 9030e6a7ad
commit 078da37d5c
1 changed files with 2 additions and 2 deletions

View File

@ -1134,8 +1134,8 @@ static void draw_frame(struct vo *vo, struct vo_frame *frame)
p->target_params = (struct mp_image_params){
.imgfmt_name = swframe.fbo->params.format
? swframe.fbo->params.format->name : NULL,
.w = mp_rect_w(target.crop),
.h = mp_rect_h(target.crop),
.w = mp_rect_w(p->dst),
.h = mp_rect_h(p->dst),
.color = target.color,
.repr = target.repr,
.rotate = target.rotation,