diff -NpuBr -Xexclude.txt main/ffmpeg/libavformat/avformat.h sherpya/ffmpeg/libavformat/avformat.h --- main/ffmpeg/libavformat/avformat.h 2011-12-07 02:01:13.000000000 +0100 +++ sherpya/ffmpeg/libavformat/avformat.h 2011-12-07 02:31:02.296875000 +0100 @@ -1905,7 +1905,7 @@ attribute_deprecated int find_info_tag(c * @param number frame number * @return 0 if OK, -1 on format error */ -int av_get_frame_filename(char *buf, int buf_size, +int av_get_frame_filename(unsigned char *buf, int buf_size, const char *path, int number); /** diff -NpuBr -Xexclude.txt main/ffmpeg/libavformat/http.c sherpya/ffmpeg/libavformat/http.c --- main/ffmpeg/libavformat/http.c 2011-12-07 02:01:13.000000000 +0100 +++ sherpya/ffmpeg/libavformat/http.c 2011-12-07 02:31:02.312500000 +0100 @@ -242,7 +242,7 @@ static int process_line(URLContext *h, c int *new_location) { HTTPContext *s = h->priv_data; - char *tag, *p, *end; + unsigned char *tag, *p, *end; /* end of header */ if (line[0] == '\0') diff -NpuBr -Xexclude.txt main/ffmpeg/libavformat/utils.c sherpya/ffmpeg/libavformat/utils.c --- main/ffmpeg/libavformat/utils.c 2011-12-07 02:01:13.000000000 +0100 +++ sherpya/ffmpeg/libavformat/utils.c 2011-12-07 02:31:02.375000000 +0100 @@ -3743,11 +3743,11 @@ int find_info_tag(char *arg, int arg_siz } #endif -int av_get_frame_filename(char *buf, int buf_size, +int av_get_frame_filename(unsigned char *buf, int buf_size, const char *path, int number) { - const char *p; - char *q, buf1[20], c; + const unsigned char *p; + unsigned char *q, buf1[20], c; int nd, len, percentd_found; q = buf; diff -NpuBr -Xexclude.txt main/ffmpeg/libavutil/eval.c sherpya/ffmpeg/libavutil/eval.c --- main/ffmpeg/libavutil/eval.c 2011-12-07 02:01:13.000000000 +0100 +++ sherpya/ffmpeg/libavutil/eval.c 2011-12-07 02:31:02.375000000 +0100 @@ -516,7 +516,7 @@ int av_expr_parse(AVExpr **expr, const c return AVERROR(ENOMEM); while (*s) - if (!isspace(*s++)) *wp++ = s[-1]; + if (!isspace((unsigned char) *s++)) *wp++ = s[-1]; *wp++ = 0; p.class = &class; diff -NpuBr -Xexclude.txt main/libmpdemux/mf.c sherpya/libmpdemux/mf.c --- main/libmpdemux/mf.c 2011-08-11 02:52:57.984375000 +0200 +++ sherpya/libmpdemux/mf.c 2011-12-07 02:31:02.390625000 +0100 @@ -68,7 +68,7 @@ mf_t* open_mf(char * filename){ while ( fgets( fname,PATH_MAX,lst_f ) ) { /* remove spaces from end of fname */ - char *t=fname + strlen( fname ) - 1; + unsigned char *t=fname + strlen( fname ) - 1; while ( t > fname && isspace( *t ) ) *(t--)=0; if ( stat( fname,&fs ) ) { diff -NpuBr -Xexclude.txt main/libvo/vo_fbdev.c sherpya/libvo/vo_fbdev.c --- main/libvo/vo_fbdev.c 2011-05-18 03:45:44.390625000 +0200 +++ sherpya/libvo/vo_fbdev.c 2011-12-07 02:31:02.390625000 +0100 @@ -100,8 +100,8 @@ static int validate_mode(fb_mode_t *m) static FILE *fp; static int line_num = 0; -static char *line; -static char *token[MAX_NR_TOKEN]; +static unsigned char *line; +static unsigned char *token[MAX_NR_TOKEN]; static int get_token(int num) { diff -NpuBr -Xexclude.txt main/parser-cfg.c sherpya/parser-cfg.c --- main/parser-cfg.c 2011-11-01 02:42:23.046875000 +0100 +++ sherpya/parser-cfg.c 2011-12-07 02:31:02.406250000 +0100 @@ -60,10 +60,10 @@ int m_config_parse_config_file(m_config_ #define MAX_OPT_LEN 1000 #define MAX_PARAM_LEN 1500 FILE *fp; - char *line; - char opt[MAX_OPT_LEN + 1]; - char param[MAX_PARAM_LEN + 1]; - char c; /* for the "" and '' check */ + unsigned char *line; + unsigned char opt[MAX_OPT_LEN + 1]; + unsigned char param[MAX_PARAM_LEN + 1]; + unsigned char c; /* for the "" and '' check */ int tmp; int line_num = 0; int line_pos; /* line pos */ diff -NpuBr -Xexclude.txt main/stream/stream_dvd.c sherpya/stream/stream_dvd.c --- main/stream/stream_dvd.c 2011-06-13 04:45:56.593750000 +0200 +++ sherpya/stream/stream_dvd.c 2011-12-07 02:31:02.406250000 +0100 @@ -84,8 +84,8 @@ static const struct m_struct_st stream_o stream_opts_fields }; -int dvd_parse_chapter_range(const m_option_t *conf, const char *range) { - const char *s; +int dvd_parse_chapter_range(const m_option_t *conf, const unsigned char *range) { + const unsigned char *s; char *t; if (!range) return M_OPT_MISSING_PARAM; diff -NpuBr -Xexclude.txt main/stream/stream_dvd.h sherpya/stream/stream_dvd.h --- main/stream/stream_dvd.h 2010-09-12 14:28:29.953125000 +0200 +++ sherpya/stream/stream_dvd.h 2011-12-07 02:31:02.406250000 +0100 @@ -62,6 +62,6 @@ int dvd_lang_from_sid(stream_t *stream, int dvd_aid_from_lang(stream_t *stream, const unsigned char* lang); int dvd_sid_from_lang(stream_t *stream, const unsigned char* lang); int dvd_chapter_from_cell(dvd_priv_t *dvd,int title,int cell); -int dvd_parse_chapter_range(const m_option_t *conf, const char *range); +int dvd_parse_chapter_range(const m_option_t *conf, const unsigned char *range); #endif /* MPLAYER_STREAM_DVD_H */ diff -NpuBr -Xexclude.txt main/stream/tv.c sherpya/stream/tv.c --- main/stream/tv.c 2011-08-11 02:52:51.109375000 +0200 +++ sherpya/stream/tv.c 2011-12-07 02:31:02.421875000 +0100 @@ -562,7 +562,7 @@ static int open_tv(tvi_handle_t *tvh) int channel = 0; if (tvh->tv_param->channel) { - if (isdigit(*tvh->tv_param->channel)) + if (isdigit((unsigned char) *tvh->tv_param->channel)) /* if tvh->tv_param->channel begins with a digit interpret it as a number */ channel = atoi(tvh->tv_param->channel); else diff -NpuBr -Xexclude.txt main/sub/subreader.c sherpya/sub/subreader.c --- main/sub/subreader.c 2011-08-25 02:46:20.984375000 +0200 +++ sherpya/sub/subreader.c 2011-12-07 02:31:02.421875000 +0100 @@ -87,12 +87,12 @@ int sub_format=SUB_INVALID; unsigned long previous_sub_end; #endif -static int eol(char p) { +static int eol(unsigned char p) { return p=='\r' || p=='\n' || p=='\0'; } /* Remove leading and trailing space */ -static void trail_space(char *s) { +static void trail_space(unsigned char *s) { int i = 0; while (isspace(s[i])) ++i; if (i) strcpy(s, s + i); @@ -733,8 +733,8 @@ static void sub_pp_ssa(subtitle *sub) { * by set, based on code by szabi (dunnowhat sub format ;-) */ static subtitle *sub_read_line_pjs(stream_t *st,subtitle *current, int utf16) { - char line[LINE_LEN+1]; - char text[LINE_LEN+1], *s, *d; + unsigned char line[LINE_LEN+1]; + unsigned char text[LINE_LEN+1], *s, *d; if (!stream_read_line (st, line, LINE_LEN, utf16)) return NULL; @@ -774,7 +774,7 @@ static subtitle *sub_read_line_mpsub(str char line[LINE_LEN+1]; float a,b; int num=0; - char *p, *q; + unsigned char *p, *q; do { @@ -912,7 +912,7 @@ retry: static subtitle *sub_read_line_jacosub(stream_t* st, subtitle * current, int utf16) { - char line1[LINE_LEN], line2[LINE_LEN], directive[LINE_LEN], *p, *q; + unsigned char line1[LINE_LEN], line2[LINE_LEN], directive[LINE_LEN], *p, *q; unsigned a1, a2, a3, a4, b1, b2, b3, b4, comment = 0; static unsigned jacoTimeres = 30; static int jacoShift = 0; @@ -1828,7 +1828,7 @@ char * strreplace( char * in,char * what #endif -static void strcpy_trim(char *d, const char *s) +static void strcpy_trim(unsigned char *d, const unsigned char *s) { // skip leading whitespace while (*s && isspace(*s)) { @@ -1883,7 +1883,7 @@ static void strcpy_get_ext(char *d, cons } } -static int whiteonly(const char *s) +static int whiteonly(const unsigned char *s) { while (*s) { if (!isspace(*s)) return 0; diff -NpuBr -Xexclude.txt main/sub/vobsub.c sherpya/sub/vobsub.c --- main/sub/vobsub.c 2011-11-01 02:42:22.890625000 +0100 +++ sherpya/sub/vobsub.c 2011-12-07 02:31:02.437500000 +0100 @@ -232,7 +232,7 @@ typedef FILE rar_stream_t; /**********************************************************************/ -static ssize_t vobsub_getline(char **lineptr, size_t *n, rar_stream_t *stream) +static ssize_t vobsub_getline(unsigned char **lineptr, size_t *n, rar_stream_t *stream) { size_t res = 0; int c; @@ -241,7 +241,7 @@ static ssize_t vobsub_getline(char **lin if (*lineptr) *n = 4096; } else if (*n == 0) { - char *tmp = realloc(*lineptr, 4096); + unsigned char *tmp = realloc(*lineptr, 4096); if (tmp) { *lineptr = tmp; *n = 4096; @@ -665,11 +665,11 @@ static int vobsub_add_timestamp(vobsub_t return -1; } -static int vobsub_parse_id(vobsub_t *vob, const char *line) +static int vobsub_parse_id(vobsub_t *vob, const unsigned char *line) { // id: xx, index: n size_t idlen; - const char *p, *q; + const unsigned char *p, *q; p = line; while (isspace(*p)) ++p; @@ -692,7 +692,7 @@ static int vobsub_parse_id(vobsub_t *vob return vobsub_add_id(vob, p, idlen, atoi(q)); } -static int vobsub_parse_timestamp(vobsub_t *vob, const char *line) +static int vobsub_parse_timestamp(vobsub_t *vob, const unsigned char *line) { int h, m, s, ms; off_t filepos; @@ -702,7 +702,7 @@ static int vobsub_parse_timestamp(vobsub return vobsub_add_timestamp(vob, filepos, vob->delay + ms + 1000 * (s + 60 * (m + 60 * h))); } -static int vobsub_parse_origin(vobsub_t *vob, const char *line) +static int vobsub_parse_origin(vobsub_t *vob, const unsigned char *line) { // org: X,Y unsigned x, y; @@ -742,7 +742,7 @@ unsigned int vobsub_rgb_to_yuv(unsigned return y << 16 | u << 8 | v; } -static int vobsub_parse_delay(vobsub_t *vob, const char *line) +static int vobsub_parse_delay(vobsub_t *vob, const unsigned char *line) { int h, m, s, ms; int forward = 1; @@ -766,7 +766,7 @@ static int vobsub_parse_delay(vobsub_t * return 0; } -static int vobsub_set_lang(const char *line) +static int vobsub_set_lang(const unsigned char *line) { if (vobsub_id == -1) vobsub_id = atoi(line + 8); @@ -780,7 +780,7 @@ static int vobsub_parse_one_line(vobsub_ ssize_t line_size; int res = -1; size_t line_reserve = 0; - char *line = NULL; + unsigned char *line = NULL; do { line_size = vobsub_getline(&line, &line_reserve, fd); if (line_size < 0 || line_size > 1000000 ||