diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2013-03-03 11:17:50 +0100 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2013-03-03 21:44:10 +0100 |
commit | 88d55b827d5ecac94c9ec399d219cc02b46ed694 (patch) | |
tree | 6aa644bd0328757eae325c5ba61df169d75cfa6e /libavformat/subtitles.c | |
parent | 2cffe38df3df8ee1ec0fea0b2a2d3fed6e75da0d (diff) | |
download | ffmpeg-88d55b827d5ecac94c9ec399d219cc02b46ed694.tar.gz |
Remove incorrect use of ctype.h functions.
As far as I can tell the code should not change behaviour
depending on locale in any of these places.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavformat/subtitles.c')
-rw-r--r-- | libavformat/subtitles.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/subtitles.c b/libavformat/subtitles.c index 546261605f..37ba0cb0b6 100644 --- a/libavformat/subtitles.c +++ b/libavformat/subtitles.c @@ -170,12 +170,12 @@ const char *ff_smil_get_attr_ptr(const char *s, const char *attr) while (*s) { while (*s) { - if (!in_quotes && isspace(*s)) + if (!in_quotes && av_isspace(*s)) break; in_quotes ^= *s == '"'; // XXX: support escaping? s++; } - while (isspace(*s)) + while (av_isspace(*s)) s++; if (!av_strncasecmp(s, attr, len) && s[len] == '=') return s + len + 1 + (s[len + 1] == '"'); |