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/urldecode.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/urldecode.c')
-rw-r--r-- | libavformat/urldecode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/urldecode.c b/libavformat/urldecode.c index b1009037a8..283d912671 100644 --- a/libavformat/urldecode.c +++ b/libavformat/urldecode.c @@ -26,7 +26,6 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include <ctype.h> #include <string.h> #include "libavutil/mem.h" @@ -54,7 +53,7 @@ char *ff_urldecode(const char *url) if (c == '%' && s + 2 < url_len) { char c2 = url[s++]; char c3 = url[s++]; - if (isxdigit(c2) && isxdigit(c3)) { + if (av_isxdigit(c2) && av_isxdigit(c3)) { c2 = av_tolower(c2); c3 = av_tolower(c3); |