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.
This commit is contained in:
Steve Lhomme 2024-03-21 11:57:55 +01:00
parent 172ae5a663
commit 53e48f1a98
1 changed files with 2 additions and 1 deletions

View File

@ -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