diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-02-28 15:24:30 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-02-28 15:24:30 +0000 |
commit | b20e08ed94c850b419ed9b9e1736cf32da71afc7 (patch) | |
tree | b51c40e39a64389c76aee29974ad397209c67e9d /stream/stream.h | |
parent | e9a5e7f667d1b0c0dec0053ad9ec6f7bc3162b60 (diff) | |
download | mpv-b20e08ed94c850b419ed9b9e1736cf32da71afc7.tar.bz2 mpv-b20e08ed94c850b419ed9b9e1736cf32da71afc7.tar.xz |
Extend stream_read_line to support reading lines from UTF-16 encoded files
and use this to support reading UTF-16 encoded subtitle files in subreader.c
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30799 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/stream.h')
-rw-r--r-- | stream/stream.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/stream.h b/stream/stream.h index cc70c81db5..7774651611 100644 --- a/stream/stream.h +++ b/stream/stream.h @@ -265,7 +265,7 @@ inline static int stream_read(stream_t *s,char* mem,int total){ return total; } -unsigned char* stream_read_line(stream_t *s,unsigned char* mem, int max); +unsigned char* stream_read_line(stream_t *s,unsigned char* mem, int max, int utf16); inline static int stream_eof(stream_t *s){ return s->eof; |