Mercurial > mplayer.hg
diff stream/stream.h @ 30757:6a5957bf5b70
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
author | reimar |
---|---|
date | Sun, 28 Feb 2010 15:24:30 +0000 |
parents | dff9ee89b7c1 |
children | ce19feeb5cbb |
line wrap: on
line diff
--- a/stream/stream.h Sun Feb 28 14:27:44 2010 +0000 +++ b/stream/stream.h Sun Feb 28 15:24:30 2010 +0000 @@ -265,7 +265,7 @@ 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;