]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/parseutils.c
Stefanos port was missing DIRS variable in the Makefile for the newly added x86
[ffmpeg] / libavfilter / parseutils.c
index 71fb70ea34960b8d0e77c5dc7eed906426d32be5..669ec9d298e70fce7e865fa29f315cf52b381ec5 100644 (file)
@@ -234,8 +234,7 @@ int av_parse_color(uint8_t *rgba_color, const char *color_string, void *log_ctx)
         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);
@@ -253,10 +252,10 @@ int av_parse_color(uint8_t *rgba_color, const char *color_string, void *log_ctx)
         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);
@@ -289,7 +288,7 @@ int av_parse_color(uint8_t *rgba_color, const char *color_string, void *log_ctx)
 }
 
 /**
- * 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