From 0c38751610578936de634ebcf915b12e06a35f76 Mon Sep 17 00:00:00 2001 From: Petri Hintukainen Date: Wed, 27 Nov 2013 16:47:18 +0200 Subject: input_bluray: check for empty bitmaps --- src/input/input_bluray.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/input/input_bluray.c b/src/input/input_bluray.c index afbb79603..a2aa6d397 100644 --- a/src/input/input_bluray.c +++ b/src/input/input_bluray.c @@ -317,7 +317,7 @@ static void draw_bitmap(xine_osd_t *osd, const BD_OVERLAY * const ov) #endif /* uncompress and draw bitmap */ - if (ov->img) { + if (ov->img && ov->w > 0 && ov->h > 0) { const BD_PG_RLE_ELEM *rlep = ov->img; uint8_t *img = malloc(ov->w * ov->h); unsigned pixels = ov->w * ov->h; -- cgit v1.2.3