# HG changeset patch # User benoit # Date 1210555020 0 # Node ID b8f57813338a89cf9ce4432aeb1f7d963eeda9a8 # Parent 8570df039c759864c4dffd86610349e8d23bd6f9 Use strcasecmp() instead of re-inventing it. Patch by Diego 'Flameeyes' Petten flameeyesATgmailPOINTcom diff -r 8570df039c75 -r b8f57813338a img2.c --- a/img2.c Sun May 11 10:53:21 2008 +0000 +++ b/img2.c Mon May 12 01:17:00 2008 +0000 @@ -22,6 +22,7 @@ #include "libavutil/avstring.h" #include "avformat.h" +#include typedef struct { int img_first; @@ -102,11 +103,8 @@ str++; while (tags->id) { - int i; - for(i=0; toupper(tags->str[i]) == toupper(str[i]); i++){ - if(tags->str[i]==0 && str[i]==0) - return tags->id; - } + if (!strcasecmp(str, tags->str)) + return tags->id; tags++; }