summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2024-04-13 21:39:35 +0200
committerKacper Michajłow <kasper93@gmail.com>2024-04-13 23:07:16 +0200
commit078da37d5cfbddec63105ba453112d85ec0fd788 (patch)
tree3dfac9a8c7101843b26cb8a5d357a0deab5615ea /video/out
parent9030e6a7ad4f521a905a10fc7b1942cc95546495 (diff)
downloadmpv-078da37d5cfbddec63105ba453112d85ec0fd788.tar.bz2
mpv-078da37d5cfbddec63105ba453112d85ec0fd788.tar.xz
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
Diffstat (limited to 'video/out')
-rw-r--r--video/out/vo_gpu_next.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/vo_gpu_next.c b/video/out/vo_gpu_next.c
index 8616d4f2cc..0a93f6329c 100644
--- a/video/out/vo_gpu_next.c
+++ b/video/out/vo_gpu_next.c
@@ -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,