Revision 2722dd6e libavfilter/vf_drawbox.c

View differences:

libavfilter/vf_drawbox.c
49 49
        sscanf(args, "%d:%d:%d:%d:%s",
50 50
               &drawbox->x, &drawbox->y, &drawbox->w, &drawbox->h, color_str);
51 51

  
52
    if (av_parse_color(rgba_color, color_str, ctx) < 0)
52
    if (av_parse_color(rgba_color, color_str, -1, ctx) < 0)
53 53
        return AVERROR(EINVAL);
54 54

  
55 55
    drawbox->yuv_color[Y] = RGB_TO_Y_CCIR(rgba_color[0], rgba_color[1], rgba_color[2]);

Also available in: Unified diff