diff options
author | wm4 <wm4@nowhere> | 2012-10-28 16:08:19 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-11-01 02:07:46 +0100 |
commit | f4069259cf7ffd24ac2a5b64e26a386185e94c7b (patch) | |
tree | f8b0b31c0ecfc968825f44cad27ab943a1338bf1 /sub/draw_bmp.c | |
parent | 6f408d0d9d6d0655faec75474bc3074812b41826 (diff) | |
download | mpv-f4069259cf7ffd24ac2a5b64e26a386185e94c7b.tar.bz2 mpv-f4069259cf7ffd24ac2a5b64e26a386185e94c7b.tar.xz |
draw_bmp: remove swscale bug workaround
ffmpeg ticket #1852 is fixed with 425c30dda. This didn't actually happen
in practice.
Diffstat (limited to 'sub/draw_bmp.c')
-rw-r--r-- | sub/draw_bmp.c | 4 |
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; |