From 9ca02a60645c5ffc9ae2a3c0994e732eda70e03d Mon Sep 17 00:00:00 2001 From: nanahi <130121847+na-na-hi@users.noreply.github.com> Date: Wed, 28 Aug 2024 12:29:54 -0400 Subject: [PATCH] video/out/gpu/video: use video rectangle for video-target-params This makes the reported sizes the same as how stats.lua calculates sizes for VOs witout video-target-params while in dumb mode. --- video/out/gpu/video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/video/out/gpu/video.c b/video/out/gpu/video.c index eaa53c493fa0f..54961ffa1b540 100644 --- a/video/out/gpu/video.c +++ b/video/out/gpu/video.c @@ -2728,8 +2728,8 @@ static void pass_colormanage(struct gl_video *p, struct pl_color_space src, cparams.levels_out = PL_COLOR_LEVELS_FULL; p->target_params = (struct mp_image_params){ .imgfmt_name = p->fbo_format ? p->fbo_format->name : "unknown", - .w = p->texture_w, - .h = p->texture_h, + .w = mp_rect_w(p->dst_rect), + .h = mp_rect_h(p->dst_rect), .color = dst, .repr = {.sys = PL_COLOR_SYSTEM_RGB, .levels = cparams.levels_out}, .rotate = p->image_params.rotate,