OSDN Git Service

fix 0 byte bug.
authorgn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Sat, 20 Feb 2010 13:37:51 +0000 (13:37 +0000)
committergn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Sat, 20 Feb 2010 13:37:51 +0000 (13:37 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@441 4e526526-5e11-4fc0-8910-f8fd03428081

jTsSplitter/trunk/src/jtssplitter/Main.java

index 2ec94f9..338b710 100644 (file)
@@ -4,6 +4,8 @@
  */
 package jtssplitter;
 
+import java.io.File;
+
 
 /**
  *
@@ -33,6 +35,9 @@ public class Main {
             }
         }
         Tsfile t1 = new Tsfile();
-        t1.splitTS_byte(inf, outf, ch);
+        File f=new File(inf);
+        if (f.length()>1000*1000){
+            t1.splitTS_byte(inf, outf, ch);
+        }
     }
 }