parseutils: include errors in test output.

This commit is contained in:
Nicolas George 2012-04-16 12:07:48 +02:00
parent 788a60d9d6
commit b0e7321cf0
1 changed files with 2 additions and 0 deletions

View File

@ -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]);
}
}