diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2011-12-24 16:17:18 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2011-12-24 16:21:40 +0100 |
commit | 1858a5c25ee1ccb8089339d20138116a46cc6c77 (patch) | |
tree | 5666f486c24d97435f9bda344be2b0b8f5af253a /libavfilter | |
parent | 32c49389bcf6c73b9708cf593dd6b0074164709f (diff) | |
download | ffmpeg-1858a5c25ee1ccb8089339d20138116a46cc6c77.tar.gz |
vf_drawtext: select YUV color for drawbox() in case YUV colorspace is used
Fix box alpha rendering when a YUV colorspace is selected, in particular
fix trac ticket #763.
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_drawtext.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c index 0c545c8140..344c8db110 100644 --- a/libavfilter/vf_drawtext.c +++ b/libavfilter/vf_drawtext.c @@ -825,7 +825,7 @@ static int draw_text(AVFilterContext *ctx, AVFilterBufferRef *picref, /* draw box */ if (dtext->draw_box) drawbox(picref, dtext->x, dtext->y, box_w, box_h, - dtext->box_line, dtext->pixel_step, dtext->boxcolor_rgba, + dtext->box_line, dtext->pixel_step, dtext->is_packed_rgb ? dtext->boxcolor_rgba : dtext->boxcolor, dtext->hsub, dtext->vsub, dtext->is_packed_rgb, dtext->rgba_map); if (dtext->shadowx || dtext->shadowy) { |