diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/input/input_bluray.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |