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 /libavcodec/xbmdec.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 'libavcodec/xbmdec.c')
-rw-r--r-- | libavcodec/xbmdec.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/xbmdec.c b/libavcodec/xbmdec.c index 2a41836492..8632db7b0f 100644 --- a/libavcodec/xbmdec.c +++ b/libavcodec/xbmdec.c @@ -23,6 +23,7 @@ #include "avcodec.h" #include "internal.h" #include "mathops.h" +#include "libavutil/avstring.h" static av_cold int xbm_decode_init(AVCodecContext *avctx) { @@ -94,10 +95,10 @@ static int xbm_decode_frame(AVCodecContext *avctx, void *data, uint8_t val; ptr += strcspn(ptr, "x") + 1; - if (ptr < end && isxdigit(*ptr)) { + if (ptr < end && av_isxdigit(*ptr)) { val = convert(*ptr); ptr++; - if (isxdigit(*ptr)) + if (av_isxdigit(*ptr)) val = (val << 4) + convert(*ptr); *dst++ = ff_reverse[val]; } else { |