mirror of
https://github.com/mpv-player/mpv
synced 2025-01-11 09:29:29 +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) {
|
for (int i = 0; i < sbs->num_parts; ++i) {
|
||||||
struct sub_bitmap *sb = &sbs->parts[i];
|
struct sub_bitmap *sb = &sbs->parts[i];
|
||||||
|
|
||||||
// libswscale madness: it requires a minimum width
|
if (sb->w < 1 || sb->h < 1)
|
||||||
// skip it, we can't reasonably handle it
|
|
||||||
if (sb->w < 8)
|
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
struct mp_image dst;
|
struct mp_image dst;
|
||||||
|
Loading…
Reference in New Issue
Block a user