draw_bmp: remove swscale bug workaround

ffmpeg ticket #1852 is fixed with 425c30dda. This didn't actually happen
in practice.
This commit is contained in:
wm4 2012-10-28 16:08:19 +01:00
parent 6f408d0d9d
commit f4069259cf
1 changed files with 1 additions and 3 deletions

View File

@ -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;