[libbluray-devel] Set ARGB overlay data pointer to start of changed region

hpi1 git at videolan.org
Fri Apr 26 11:17:48 CEST 2013


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri Apr 26 12:14:01 2013 +0300| [448b48002300eeafa2f8a69b638a8c787fcb6fe5] | committer: hpi1

Set ARGB overlay data pointer to start of changed region

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

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

diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index 481aaf1..c50ccec 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -1156,7 +1156,7 @@ static void _bdj_osd_cb(BLURAY *bd, const unsigned *img, int w, int h,
     }
 
     /* pass only changed region */
-    aov.argb   = img;
+    aov.argb   = img + x0 + y0 * w;
     aov.stride = w;
     aov.x      = x0;
     aov.y      = y0;



More information about the libbluray-devel mailing list