diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-11-02 20:17:25 +0100 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2011-11-06 11:52:57 +0200 |
commit | bb3244dee26e3c500b14830e9500cb2d3658f809 (patch) | |
tree | 197235a2c136636ffbeab1464e51a87963ea6e36 /libavformat/nutdec.c | |
parent | ba04ecfdacec4cf86e74b43fe8bcc09e06bb7a72 (diff) | |
download | ffmpeg-bb3244dee26e3c500b14830e9500cb2d3658f809.tar.gz |
Replace all usage of strcasecmp/strncasecmp
All current usages of it are incompatible with localization.
For example strcasecmp("i", "I") != 0 is possible, but would
break many of the places where it is used.
Instead use our own implementations that always treat the data
as ASCII.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/nutdec.c')
-rw-r--r-- | libavformat/nutdec.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c index 8903424b09..c41b4ce466 100644 --- a/libavformat/nutdec.c +++ b/libavformat/nutdec.c @@ -20,7 +20,6 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include <strings.h> #include "libavutil/avstring.h" #include "libavutil/bswap.h" #include "libavutil/dict.h" @@ -459,8 +458,8 @@ static int decode_info_header(NUTContext *nut){ set_disposition_bits(s, str_value, stream_id_plus1 - 1); continue; } - if(metadata && strcasecmp(name,"Uses") - && strcasecmp(name,"Depends") && strcasecmp(name,"Replaces")) + if(metadata && av_strcasecmp(name,"Uses") + && av_strcasecmp(name,"Depends") && av_strcasecmp(name,"Replaces")) av_dict_set(metadata, name, str_value, 0); } } |