Commit 4e4bdece authored by benoit's avatar benoit

Use strcasecmp() instead of re-inventing it.

Patch by Diego 'Flameeyes' Pettenò flameeyesATgmailPOINTcom


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13132 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b6eb7aa4
......@@ -22,6 +22,7 @@
#include "libavutil/avstring.h"
#include "avformat.h"
#include <strings.h>
typedef struct {
int img_first;
......@@ -102,11 +103,8 @@ static enum CodecID av_str2id(const IdStrMap *tags, const char *str)
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++;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment