summaryrefslogtreecommitdiffstats
path: root/sub
diff options
context:
space:
mode:
Diffstat (limited to 'sub')
-rw-r--r--sub/draw_bmp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sub/draw_bmp.c b/sub/draw_bmp.c
index e693afe137..9a72a5b738 100644
--- a/sub/draw_bmp.c
+++ b/sub/draw_bmp.c
@@ -244,9 +244,7 @@ static void draw_rgba(struct mp_draw_sub_cache **cache, struct mp_rect bb,
for (int i = 0; i < sbs->num_parts; ++i) {
struct sub_bitmap *sb = &sbs->parts[i];
- // libswscale madness: it requires a minimum width
- // skip it, we can't reasonably handle it
- if (sb->w < 8)
+ if (sb->w < 1 || sb->h < 1)
continue;
struct mp_image dst;