parseutils: include errors in test output.

pull/5/head
Nicolas George 13 years ago
parent 788a60d9d6
commit b0e7321cf0
  1. 2
      libavutil/parseutils.c

@ -769,6 +769,8 @@ int main(void)
for (i = 0; i < FF_ARRAY_ELEMS(color_names); i++) {
if (av_parse_color(rgba, color_names[i], -1, NULL) >= 0)
printf("%s -> R(%d) G(%d) B(%d) A(%d)\n", color_names[i], rgba[0], rgba[1], rgba[2], rgba[3]);
else
printf("%s -> error\n", color_names[i]);
}
}

Loading…
Cancel
Save