mirror of https://github.com/mpv-player/mpv
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:
parent
9030e6a7ad
commit
078da37d5c
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue