rgba_color[1] = rgba >> 16;
rgba_color[2] = rgba >> 8;
rgba_color[3] = rgba;
- } else
- if (!strncmp(color_string2, "0x", 2)) {
+ } else if (!strncmp(color_string2, "0x", 2)) {
char *tail;
int len = strlen(color_string2);
unsigned int rgba = strtoul(color_string2, &tail, 16);
rgba_color[2] = rgba;
} else {
entry = bsearch(color_string2,
- color_table,
- FF_ARRAY_ELEMS(color_table),
- sizeof(ColorEntry),
- color_table_compare);
+ color_table,
+ FF_ARRAY_ELEMS(color_table),
+ sizeof(ColorEntry),
+ color_table_compare);
if (!entry) {
av_log(log_ctx, AV_LOG_ERROR, "Cannot find color '%s'\n", color_string2);
return AVERROR(EINVAL);
}
/**
- * Stores the value in the field in ctx that is named like key.
+ * Store the value in the field in ctx that is named like key.
* ctx must be an AVClass context, storing is done using AVOptions.
*
* @param buf the string to parse, buf will be updated to point at the