[libbluray-devel] Fix signed/unsigned mismatch in _render_textst_region method

tourettes git at videolan.org
Wed Feb 18 10:36:32 CET 2015


libbluray | branch: master | tourettes <tourettes at team-mediaportal.com> | Sun Feb 15 13:27:01 2015 +0200| [7ba5671e2503c9159576ebea498130fd56a82b58] | committer: hpi1

Fix signed/unsigned mismatch in _render_textst_region method

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=7ba5671e2503c9159576ebea498130fd56a82b58
---

 src/libbluray/decoders/graphics_controller.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/libbluray/decoders/graphics_controller.c b/src/libbluray/decoders/graphics_controller.c
index aef513c..7edcbf2 100644
--- a/src/libbluray/decoders/graphics_controller.c
+++ b/src/libbluray/decoders/graphics_controller.c
@@ -953,7 +953,8 @@ int gc_add_font(GRAPHICS_CONTROLLER *p, void *data, size_t size)
 static int _render_textst_region(GRAPHICS_CONTROLLER *p, int64_t pts, BD_TEXTST_REGION_STYLE *style, TEXTST_BITMAP *bmp,
                                  BD_PG_PALETTE_ENTRY *palette)
 {
-    unsigned y, bmp_y;
+    unsigned bmp_y;
+    uint16_t y;
     RLE_ENC  rle;
 
     rle_begin(&rle);



More information about the libbluray-devel mailing list