From f4069259cf7ffd24ac2a5b64e26a386185e94c7b Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 28 Oct 2012 16:08:19 +0100 Subject: draw_bmp: remove swscale bug workaround ffmpeg ticket #1852 is fixed with 425c30dda. This didn't actually happen in practice. --- sub/draw_bmp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sub') 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; -- cgit v1.2.3