OSDN Git Service

fix bug.
authorgn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Wed, 27 Jan 2010 21:54:07 +0000 (21:54 +0000)
committergn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Wed, 27 Jan 2010 21:54:07 +0000 (21:54 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@414 4e526526-5e11-4fc0-8910-f8fd03428081

jTsSplitter/trunk/src/jtssplitter/Main.java
jTsSplitter/trunk/src/jtssplitter/Mpeg2TSPacket.java

index 2ec94f9..410c7b9 100644 (file)
@@ -33,6 +33,8 @@ public class Main {
             }
         }
         Tsfile t1 = new Tsfile();
+        inf ="/home/ftpusr/ftp-tmp/Recording/「エネミー・ライン」水曜シアター9[S][二][字].ts.tsmix";
+        outf="/home/ftpusr/ftp-tmp/Recording/「エネミー・ライン」水曜シアター9[S][二][字].ts";
         t1.splitTS_byte(inf, outf, ch);
     }
 }
index abd8fcf..f8d6961 100644 (file)
@@ -196,6 +196,9 @@ public class Mpeg2TSPacket {
                 if ((cur_point > section_length * 8 - 1) || (cur_point > payload_temp.length * 8 - 11)) {
                     end = true;
                 }
+                if (payload_temp.length * 8 < cur_point + 40){
+                    end = true;
+                }
             } else {
                 end = true;
             }