diff options
Diffstat (limited to 'sub')
-rw-r--r-- | sub/draw_bmp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sub/draw_bmp.c b/sub/draw_bmp.c index 9566582428..7ef0a9f3ff 100644 --- a/sub/draw_bmp.c +++ b/sub/draw_bmp.c @@ -495,6 +495,7 @@ static void init_general(struct mp_draw_sub_cache *p) static bool reinit_to_video(struct mp_draw_sub_cache *p) { struct mp_image_params *params = &p->params; + mp_image_params_guess_csp(params); bool need_premul = params->alpha != MP_ALPHA_PREMUL && (mp_imgfmt_get_desc(params->imgfmt).flags & MP_IMGFLAG_ALPHA); @@ -616,6 +617,7 @@ static bool reinit_to_video(struct mp_draw_sub_cache *p) 0, p->rgba_overlay, NULL)) return false; } else { + // Generally non-RGB. p->video_overlay = talloc_steal(p, mp_image_alloc(overlay_fmt, w, h)); if (!p->video_overlay) return false; |