summaryrefslogtreecommitdiffstats
path: root/libass/ass.c
diff options
context:
space:
mode:
Diffstat (limited to 'libass/ass.c')
-rw-r--r--libass/ass.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libass/ass.c b/libass/ass.c
index dba3f38caa..654fcdb811 100644
--- a/libass/ass.c
+++ b/libass/ass.c
@@ -996,7 +996,6 @@ ass_track_t* ass_read_file(ass_library_t* library, char* fname, char* codepage)
char* buf;
ass_track_t* track;
size_t bufsize;
- int i;
buf = read_file(fname, &bufsize);
if (!buf)
@@ -1037,7 +1036,7 @@ int ass_read_styles(ass_track_t* track, char* fname, char* codepage)
return 1;
#ifdef USE_ICONV
if (codepage) {
- unsigned char* tmpbuf;
+ char* tmpbuf;
tmpbuf = sub_recode(buf, sz, codepage);
free(buf);
buf = tmpbuf;