Revision 2722dd6e libavfilter/vf_pad.c

View differences:

libavfilter/vf_pad.c
143 143
    if (args)
144 144
        sscanf(args, "%d:%d:%d:%d:%s", &pad->w, &pad->h, &pad->x, &pad->y, color_string);
145 145

  
146
    if (av_parse_color(pad->color, color_string, ctx) < 0)
146
    if (av_parse_color(pad->color, color_string, -1, ctx) < 0)
147 147
        return AVERROR(EINVAL);
148 148

  
149 149
    /* sanity check params */
......
377 377
    color->time_base.num = frame_rate_q.den;
378 378
    color->time_base.den = frame_rate_q.num;
379 379

  
380
    if ((ret = av_parse_color(color->color, color_string, ctx)) < 0)
380
    if ((ret = av_parse_color(color->color, color_string, -1, ctx)) < 0)
381 381
        return ret;
382 382

  
383 383
    return 0;

Also available in: Unified diff