mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 06:03:45 +01:00
applied 64bit patch from Ulrich Hecht <uli at suse dot de>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6164 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
38ea65626f
commit
cdfc03fab6
@ -658,7 +658,7 @@ subtitle* subcp_recode (subtitle *sub)
|
|||||||
ileft = strlen(ip);
|
ileft = strlen(ip);
|
||||||
oleft = ICBUFFSIZE - 1;
|
oleft = ICBUFFSIZE - 1;
|
||||||
|
|
||||||
if (iconv(icdsc, (const char **) &ip, &ileft,
|
if (iconv(icdsc, &ip, &ileft,
|
||||||
&op, &oleft) == (size_t)(-1)) {
|
&op, &oleft) == (size_t)(-1)) {
|
||||||
printf ("SUB: error recoding line.\n");
|
printf ("SUB: error recoding line.\n");
|
||||||
l++;
|
l++;
|
||||||
|
2
vobsub.c
2
vobsub.c
@ -725,7 +725,7 @@ vobsub_parse_one_line(vobsub_t *vob, FILE *fd)
|
|||||||
ssize_t line_size;
|
ssize_t line_size;
|
||||||
int res = -1;
|
int res = -1;
|
||||||
do {
|
do {
|
||||||
int line_reserve = 0;
|
size_t line_reserve = 0;
|
||||||
char *line = NULL;
|
char *line = NULL;
|
||||||
line_size = getline(&line, &line_reserve, fd);
|
line_size = getline(&line, &line_reserve, fd);
|
||||||
if (line_size < 0) {
|
if (line_size < 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user