diff options
author | reynaldo <reynaldo@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-07-01 04:55:54 +0000 |
---|---|---|
committer | reynaldo <reynaldo@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-07-01 04:55:54 +0000 |
commit | f86db2816c2a270a54da972002b55bdbdc747b70 (patch) | |
tree | 6389cb0d7647ba39980dd8154460ccebfa94a7ea /subreader.c | |
parent | 5b4ec50d44c9a40a9cd1719521b2fd9a290d4347 (diff) | |
download | mpv-f86db2816c2a270a54da972002b55bdbdc747b70.tar.bz2 mpv-f86db2816c2a270a54da972002b55bdbdc747b70.tar.xz |
this unrelated and erroneus change was applied on my previous commit, reverted
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18875 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'subreader.c')
-rw-r--r-- | subreader.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/subreader.c b/subreader.c index 66b52a0f7b..6ecf2f4c8b 100644 --- a/subreader.c +++ b/subreader.c @@ -25,7 +25,6 @@ #endif #define ERR ((void *) -1) -#define eol(x) ((x)=='\r' || (x)=='\n' || (x)=='\0') #ifdef USE_ICONV #include <iconv.h> @@ -68,6 +67,10 @@ int sub_format=SUB_INVALID; unsigned long previous_sub_end; #endif +static int eol(char p) { + return (p=='\r' || p=='\n' || p=='\0'); +} + /* Remove leading and trailing space */ static void trail_space(char *s) { int i = 0; |