[FFmpeg-devel] [PATCH 1/3] parseutils: include errors in test	output.
    Nicolas George 
    nicolas.george at normalesup.org
       
    Mon Apr 16 13:33:37 CEST 2012
    
    
  
Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
 libavutil/parseutils.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libavutil/parseutils.c b/libavutil/parseutils.c
index 7127afe..df737f6 100644
--- a/libavutil/parseutils.c
+++ b/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]);
         }
     }
 
-- 
1.7.2.5
    
    
More information about the ffmpeg-devel
mailing list