Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
53e48f1a by Steve Lhomme at 2024-03-24T12:26:30+00:00
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.

- - - - -


1 changed file:

- src/video_output/vout_subpictures.c


Changes:

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



View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/53e48f1a988b7bca0ca3b1ae6aaa3a8de89ec967

-- 
View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/53e48f1a988b7bca0ca3b1ae6aaa3a8de89ec967
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance
_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to