From efa7f4202088c70caba11d7834641bc6eaf41830 Mon Sep 17 00:00:00 2001 From: Reimar Döffinger Date: Sun, 3 Mar 2013 11:17:50 +0100 Subject: Use the avstring.h locale-independent character type functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make sure the behavior does not change with the locale. Signed-off-by: Martin Storsjö --- libavcodec/dvdsubdec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavcodec/dvdsubdec.c') diff --git a/libavcodec/dvdsubdec.c b/libavcodec/dvdsubdec.c index 7afdd27b18..ae16f05e4c 100644 --- a/libavcodec/dvdsubdec.c +++ b/libavcodec/dvdsubdec.c @@ -23,6 +23,7 @@ #include "dsputil.h" #include "libavutil/colorspace.h" #include "libavutil/imgutils.h" +#include "libavutil/avstring.h" //#define DEBUG @@ -522,7 +523,7 @@ static int dvdsub_init(AVCodecContext *avctx) ctx->has_palette = 1; for (i = 0; i < 16; i++) { ctx->palette[i] = strtoul(p, &p, 16); - while (*p == ',' || isspace(*p)) + while (*p == ',' || av_isspace(*p)) p++; } } else if (!strncmp("size:", cur, 5)) { -- cgit v1.2.3