aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2011-09-21 11:02:36 +0200
committerStefano Sabatini <stefasab@gmail.com>2011-09-22 00:45:59 +0200
commit500b3210da0c157602266d61e6634932b8f4418e (patch)
tree6d468513709bd4594ed2fdbafb3d651004949184
parentdb56a7507ee7c1e095d2eef451d5a487f614edff (diff)
downloadffmpeg-500b3210da0c157602266d61e6634932b8f4418e.tar.gz
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.
-rw-r--r--libavfilter/vf_drawtext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c
index 42d0bce119..c52264ba93 100644
--- a/libavfilter/vf_drawtext.c
+++ b/libavfilter/vf_drawtext.c
@@ -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) {