Revision 7d132c54

View differences:

libavfilter/parseutils.c
227 227
    if (!strncmp(color_string, "0x", 2)) {
228 228
        char *tail;
229 229
        int len = strlen(color_string);
230
        int rgba = strtol(color_string, &tail, 16);
230
        unsigned int rgba = strtoul(color_string, &tail, 16);
231 231

  
232 232
        if (*tail || (len != 8 && len != 10)) {
233 233
            av_log(log_ctx, AV_LOG_ERROR, "Invalid 0xRRGGBB[AA] color string: '%s'\n", color_string);
......
412 412
            "Red",
413 413
            "0x000000",
414 414
            "0x0000000",
415
            "0xff000000",
415 416
            "0x3e34ff",
416 417
            "0x3e34ffaa",
417 418
            "0xffXXee",

Also available in: Unified diff