mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
vf_drawtext: fix background box coloring with RGB formats != RGBA
drawbox() expects a color specified in RGBA format, while the code was providing a color with the components specified in the same order of the input pixel format. In particular, fix box coloring with AXXX RGB formats.
This commit is contained in:
parent
db56a7507e
commit
500b3210da
@ -674,7 +674,7 @@ static int draw_text(AVFilterContext *ctx, AVFilterBufferRef *picref,
|
||||
/* draw box */
|
||||
if (dtext->draw_box)
|
||||
drawbox(picref, dtext->x, dtext->y, str_w, y-dtext->y,
|
||||
dtext->box_line, dtext->pixel_step, dtext->boxcolor,
|
||||
dtext->box_line, dtext->pixel_step, dtext->boxcolor_rgba,
|
||||
dtext->hsub, dtext->vsub, dtext->is_packed_rgb, dtext->rgba_map);
|
||||
|
||||
if (dtext->shadowx || dtext->shadowy) {
|
||||
|
Loading…
Reference in New Issue
Block a user