mirror of
https://github.com/mpv-player/mpv
synced 2025-02-26 02:05:31 +00:00
sub_utf8 is handled as a value, not flags everywhere else, so change
sub_utf8 & 2 to == 2. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30798 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
9538251171
commit
e9a5e7f667
@ -1433,7 +1433,7 @@ sub_data* sub_read_file (char *filename, float fps) {
|
||||
sub=srp->read(fd,sub);
|
||||
if(!sub) break; // EOF
|
||||
#ifdef CONFIG_ICONV
|
||||
if ((sub!=ERR) && (sub_utf8 & 2)) sub=subcp_recode(sub);
|
||||
if ((sub!=ERR) && sub_utf8 == 2) sub=subcp_recode(sub);
|
||||
#endif
|
||||
#ifdef CONFIG_FRIBIDI
|
||||
if (sub!=ERR) sub=sub_fribidi(sub,sub_utf8,0);
|
||||
|
Loading…
Reference in New Issue
Block a user