[libbluray-devel] Add casts from jint to uint16_t in _updateGraphic method

tourettes git at videolan.org
Sun Feb 15 13:06:45 CET 2015


libbluray | branch: master | tourettes <tourettes at team-mediaportal.com> | Sun Feb 15 13:22:51 2015 +0200| [8939c45c48ff49e0d275a0af58e650d48031e9fd] | committer: hpi1

Add casts from jint to uint16_t in _updateGraphic method

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

 src/libbluray/bdj/native/org_videolan_Libbluray.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/libbluray/bdj/native/org_videolan_Libbluray.c b/src/libbluray/bdj/native/org_videolan_Libbluray.c
index 2d77fd1..fae96c6 100644
--- a/src/libbluray/bdj/native/org_videolan_Libbluray.c
+++ b/src/libbluray/bdj/native/org_videolan_Libbluray.c
@@ -401,10 +401,10 @@ static void _updateGraphic(JNIEnv * env,
         jsize offset;
 
         /* set dirty area before lock() */
-        buf->dirty[BD_OVERLAY_IG].x0 = x0;
-        buf->dirty[BD_OVERLAY_IG].x1 = x1;
-        buf->dirty[BD_OVERLAY_IG].y0 = y0;
-        buf->dirty[BD_OVERLAY_IG].y1 = y1;
+        buf->dirty[BD_OVERLAY_IG].x0 = (uint16_t)x0;
+        buf->dirty[BD_OVERLAY_IG].x1 = (uint16_t)x1;
+        buf->dirty[BD_OVERLAY_IG].y0 = (uint16_t)y0;
+        buf->dirty[BD_OVERLAY_IG].y1 = (uint16_t)y1;
 
         /* get buffer */
         if (buf->lock) {



More information about the libbluray-devel mailing list