[vlc-commits] vout_subpictures: fix scaled subpictures
Steve Lhomme
git at videolan.org
Thu Jul 30 14:22:15 CEST 2020
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jul 28 16:28:59 2020 +0200| [ec87dbdd6de642b65c6aa9285e44ad799a190c3c] | committer: Steve Lhomme
vout_subpictures: fix scaled subpictures
The horizontal/vertical values are inverted.
scale.h means "scale height", not "scale horizontal".
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ec87dbdd6de642b65c6aa9285e44ad799a190c3c
---
src/video_output/vout_subpictures.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/video_output/vout_subpictures.c b/src/video_output/vout_subpictures.c
index 4c375e023d..8766e7b582 100644
--- a/src/video_output/vout_subpictures.c
+++ b/src/video_output/vout_subpictures.c
@@ -1246,13 +1246,13 @@ static subpicture_t *SpuRenderSubpictures(spu_t *spu,
{
if (scale.h != SCALE_UNIT)
{
- (*output_last_ptr)->zoom_h.num = scale.h;
- (*output_last_ptr)->zoom_h.den = SCALE_UNIT;
+ (*output_last_ptr)->zoom_v.num = scale.h;
+ (*output_last_ptr)->zoom_v.den = SCALE_UNIT;
}
if (scale.w != SCALE_UNIT)
{
- (*output_last_ptr)->zoom_v.num = scale.w;
- (*output_last_ptr)->zoom_v.den = SCALE_UNIT;
+ (*output_last_ptr)->zoom_h.num = scale.w;
+ (*output_last_ptr)->zoom_h.den = SCALE_UNIT;
}
}
More information about the vlc-commits
mailing list