[libbluray-devel] Fixed ARGB overlay without application buffer
hpi1
git at videolan.org
Tue Nov 12 08:56:26 CET 2013
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Tue Nov 12 09:56:00 2013 +0200| [6445e17a8a4e3579369e8e2425a53ab9603c3ed3] | committer: hpi1
Fixed ARGB overlay without application buffer
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=6445e17a8a4e3579369e8e2425a53ab9603c3ed3
---
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 b248e4e..7553e47 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -1015,7 +1015,7 @@ static void _bdj_osd_cb(BLURAY *bd, const unsigned *img, int w, int h,
}
/* pass only changed region */
- if (bd->argb_buffer->width < w || bd->argb_buffer->height < h) {
+ if (bd->argb_buffer && (bd->argb_buffer->width < w || bd->argb_buffer->height < h)) {
aov.argb = img;
} else {
aov.argb = img + x0 + y0 * w;
More information about the libbluray-devel
mailing list