From 63855d998b8f8da12d42e5a6df191c560bd6c4b1 Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Wed, 6 Mar 2024 13:09:37 +0100 Subject: [PATCH] video_output: always set the SPU destination in the placed video for SPU-handling displays It doesn't matter if we scale up or down. They do the same kind of scaling. --- src/video_output/video_output.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c index 168ab31688..7c20e94e0e 100644 --- a/src/video_output/video_output.c +++ b/src/video_output/video_output.c @@ -1178,14 +1178,12 @@ static int PrerenderPicture(vout_thread_sys_t *sys, picture_t *filtered, vout_display_PlacePicture(&place, vd->source, &vd->cfg->display); fmt_spu = *vd->source; - if (fmt_spu.i_width * fmt_spu.i_height < place.width * place.height) { - fmt_spu.i_sar_num = vd->cfg->display.sar.num; - fmt_spu.i_sar_den = vd->cfg->display.sar.den; - fmt_spu.i_width = - fmt_spu.i_visible_width = place.width; - fmt_spu.i_height = - fmt_spu.i_visible_height = place.height; - } + fmt_spu.i_sar_num = vd->cfg->display.sar.num; + fmt_spu.i_sar_den = vd->cfg->display.sar.den; + fmt_spu.i_width = + fmt_spu.i_visible_width = place.width; + fmt_spu.i_height = + fmt_spu.i_visible_height = place.height; } else { if (blending_before_converter) { fmt_spu = *vd->source;