[vlc-commits] vout: bump SCALE_UNIT to 10000

Francois Cartegnie git at videolan.org
Mon Jun 5 16:47:52 CEST 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Jun  1 18:07:16 2017 +0200| [fe5707317762482ee0a911c910d6fb32194de60e] | committer: Francois Cartegnie

vout: bump SCALE_UNIT to 10000

Because scaling back and forth introduces
rounding errors.

(1920*1000/1080) * 1080 / 1000 != 1920

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fe5707317762482ee0a911c910d6fb32194de60e
---

 src/video_output/vout_subpictures.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/video_output/vout_subpictures.c b/src/video_output/vout_subpictures.c
index 28d6f6c0de..2eb9fd8870 100644
--- a/src/video_output/vout_subpictures.c
+++ b/src/video_output/vout_subpictures.c
@@ -284,7 +284,7 @@ static void SpuRenderText(spu_t *spu, bool *rerender_text,
  * A few scale functions helpers.
  */
 
-#define SCALE_UNIT (1000)
+#define SCALE_UNIT (10000)
 typedef struct {
     unsigned w;
     unsigned h;



More information about the vlc-commits mailing list