summaryrefslogtreecommitdiffstats
path: root/libavcodec/xbmdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/xbmdec.c')
-rw-r--r--libavcodec/xbmdec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/xbmdec.c b/libavcodec/xbmdec.c
index 2a41836..8632db7 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 {
OpenPOWER on IntegriCloud