diff options
author | atlka <atlka@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-10-24 13:57:46 +0000 |
---|---|---|
committer | atlka <atlka@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-10-24 13:57:46 +0000 |
commit | a8ef3eac6d1686cc575b54a6de19139591072758 (patch) | |
tree | 46deccd6e0e5e91eb9dc6ab6b0326e91d9995f0e | |
parent | ea3b5af754d17b8c420756216b6dfb4efc6a3613 (diff) | |
download | mpv-a8ef3eac6d1686cc575b54a6de19139591072758.tar.bz2 mpv-a8ef3eac6d1686cc575b54a6de19139591072758.tar.xz |
added DUMPSUBS recognition if we need compile only subreader.c alone
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2450 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | subreader.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/subreader.c b/subreader.c index 1754a50a46..de2af2deaf 100644 --- a/subreader.c +++ b/subreader.c @@ -497,8 +497,12 @@ int sub_autodetect (FILE *fd) { return -1; // too many bad lines } - + +#ifdef DUMPSUBS +int sub_utf8=0; +#else extern int sub_utf8; +#endif #ifdef USE_ICONV static iconv_t icdsc; @@ -771,7 +775,7 @@ void dump_mpsub(subtitle* subs){ -#if 0 +#ifdef DUMPSUBS int main(int argc, char **argv) { // for testing int i,j; @@ -782,7 +786,7 @@ int main(int argc, char **argv) { // for testing printf("\nUsage: subreader filename.sub\n\n"); exit(1); } - + sub_cp = argv[2]; subs=sub_read_file(argv[1]); if(!subs){ printf("Couldn't load file... let's write a bugreport :)\n"); |