1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-02 13:02:24 +00:00

subreader.c: fix fribidi variable type

Use FriBidiParType instead of FriBidiCharType for a variable used as
the third argument of fribidi_log2vis().
This commit is contained in:
Uoti Urpala 2010-05-08 22:15:32 +03:00
parent dc1a1b8d9f
commit 33efcaf157

View File

@ -1172,7 +1172,6 @@ static subtitle* sub_fribidi (subtitle *sub, int sub_utf8, int from)
{ {
FriBidiChar logical[LINE_LEN+1], visual[LINE_LEN+1]; // Hopefully these two won't smash the stack FriBidiChar logical[LINE_LEN+1], visual[LINE_LEN+1]; // Hopefully these two won't smash the stack
char *ip = NULL, *op = NULL; char *ip = NULL, *op = NULL;
FriBidiCharType base;
size_t len,orig_len; size_t len,orig_len;
int l=sub->lines; int l=sub->lines;
int char_set_num; int char_set_num;
@ -1196,7 +1195,7 @@ static subtitle* sub_fribidi (subtitle *sub, int sub_utf8, int from)
break; break;
} }
len = fribidi_charset_to_unicode (char_set_num, ip, len, logical); len = fribidi_charset_to_unicode (char_set_num, ip, len, logical);
base = fribidi_flip_commas?FRIBIDI_TYPE_ON:FRIBIDI_TYPE_L; FriBidiParType base = fribidi_flip_commas?FRIBIDI_TYPE_ON:FRIBIDI_TYPE_L;
log2vis = fribidi_log2vis (logical, len, &base, log2vis = fribidi_log2vis (logical, len, &base,
/* output */ /* output */
visual, NULL, NULL, NULL); visual, NULL, NULL, NULL);