diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-11-07 02:41:01 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-11-07 03:01:43 +0100 |
commit | 13b7781ec8d475513c1ee40a6e481763b728a71e (patch) | |
tree | 953bee0a6461e74085e45e1f7793de6f850534e5 /libavutil/avstring.c | |
parent | ada8d485c0f77a4e79fac7f3f96031c4d0e6bc7a (diff) | |
parent | f2bd8a0786ded12c70d6877f16944b44ea731462 (diff) | |
download | ffmpeg-13b7781ec8d475513c1ee40a6e481763b728a71e.tar.gz |
Merge remote-tracking branch 'qatar/master'
* qatar/master: (23 commits)
x86inc: use sse versions of common macros instead of sse2 when applicable
doc/APIchanges: add missing dates and hashes
lavf: don't return from void av_update_cur_dts()
Changelog: add more entries.
Changelog: update ffmpeg/avconv incompatibility list.
avconv: remove some redundant temporary variables.
avconv: fix broken indentation
avconv: move copy_initial_nonkeyframes to the options context.
avconv: use file:stream instead of file.stream in log messages.
doc/avconv: elaborate on basic functionality.
doc/avconv: -sample_fmts, not -help sample_fmts prints the sample formats
openssl: Only use CRYPTO_set_id_callback on OpenSSL < 1.0.0
Call avformat_network_init/deinit in the programs
Remove leftover includes of strings.h
avutil: Don't allow using strcasecmp/strncasecmp
Replace all usage of strcasecmp/strncasecmp
avstring: Add locale independent implementations of strcasecmp/strncasecmp
avstring: Add locale independent implementations of toupper/tolower
cosmetics: insert some spaces in explicit enum value assignments
move 8SVX audio codecs to the audio codec list part on the next bump
...
Conflicts:
avprobe.c
doc/APIchanges
ffplay.c
ffserver.c
libavcodec/avcodec.h
libavdevice/bktr.c
libavdevice/v4l.c
libavdevice/v4l2.c
libavformat/matroskaenc.c
libavformat/wtv.c
libavutil/avstring.c
libavutil/avstring.h
libavutil/avutil.h
libswscale/x86/swscale_template.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/avstring.c')
-rw-r--r-- | libavutil/avstring.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/libavutil/avstring.c b/libavutil/avstring.c index d167d5245e..76f6bb2c9b 100644 --- a/libavutil/avstring.c +++ b/libavutil/avstring.c @@ -189,16 +189,12 @@ char *av_strtok(char *s, const char *delim, char **saveptr) return tok; } -#define TOUPPER(c) do { if (c >= 'a' && c <= 'z') c -= 'a' - 'A'; } while (0) - int av_strcasecmp(const char *a, const char *b) { uint8_t c1, c2; do { - c1 = *a++; - c2 = *b++; - TOUPPER(c1); - TOUPPER(c2); + c1 = av_tolower(*a++); + c2 = av_tolower(*b++); } while (c1 && c1 == c2); return c1 - c2; } @@ -208,10 +204,8 @@ int av_strncasecmp(const char *a, const char *b, size_t n) const char *end = a + n; uint8_t c1, c2; do { - c1 = *a++; - c2 = *b++; - TOUPPER(c1); - TOUPPER(c2); + c1 = av_tolower(*a++); + c2 = av_tolower(*b++); } while (a < end && c1 && c1 == c2); return c1 - c2; } |