From 53e48f1a988b7bca0ca3b1ae6aaa3a8de89ec967 Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Thu, 21 Mar 2024 11:57:55 +0100 Subject: [PATCH] vout_subpictures: use the same scaling to unscale the forced destination If scaling is not applied the scaling used was giving incorrect absolute+unscaled area for the region destination to keep. --- src/video_output/vout_subpictures.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/video_output/vout_subpictures.c b/src/video_output/vout_subpictures.c index 9c3c2adbfb..49b0bf71c4 100644 --- a/src/video_output/vout_subpictures.c +++ b/src/video_output/vout_subpictures.c @@ -1361,7 +1361,8 @@ static vlc_render_subpicture *SpuRenderSubpictures(spu_t *spu, vlc_vector_push(&output->regions, output_last_ptr); if (subpic->b_subtitle) { - area = spu_area_unscaled(area, scale); + if (!external_scale) + area = spu_area_unscaled(area, scale); if (!subpic->b_absolute && area.width > 0 && area.height > 0) { // keep the non-absolute region position that doesn't overlap // with other regions, the output subpicture will become