mirror of
https://github.com/mpv-player/mpv
synced 2024-12-23 15:22:09 +00:00
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:
parent
6f408d0d9d
commit
f4069259cf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user