summaryrefslogtreecommitdiff
path: root/libavfilter/vf_drawbox.c
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2010-11-13 13:55:01 +0000
committerAurelien Jacobs <aurel@gnuage.org>2010-11-13 13:55:01 +0000
commit2722dd6ebf9d93ab097c303df1d789f6074121c8 (patch)
treee43c90a7cae8457f355aa91128cbff5772819998 /libavfilter/vf_drawbox.c
parent521b8607488966a236cee5268a8797f3ed37e1ed (diff)
improve av_parse_color() to allow for non-null terminated color string
Originally committed as revision 25744 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/vf_drawbox.c')
-rw-r--r--libavfilter/vf_drawbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_drawbox.c b/libavfilter/vf_drawbox.c
index 76fda584ce..17e73f5588 100644
--- a/libavfilter/vf_drawbox.c
+++ b/libavfilter/vf_drawbox.c
@@ -49,7 +49,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
sscanf(args, "%d:%d:%d:%d:%s",
&drawbox->x, &drawbox->y, &drawbox->w, &drawbox->h, color_str);
- if (av_parse_color(rgba_color, color_str, ctx) < 0)
+ if (av_parse_color(rgba_color, color_str, -1, ctx) < 0)
return AVERROR(EINVAL);
drawbox->yuv_color[Y] = RGB_TO_Y_CCIR(rgba_color[0], rgba_color[1], rgba_color[2]);