浏览代码

validate for sync before trying to parse further

Gil Pedersen 13 年之前
父节点
当前提交
25cd909faa
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      lib/tssmooth.js

+ 1 - 0
lib/tssmooth.js

@@ -153,6 +153,7 @@ TsSmooth.prototype._transform = function(chunk, output, cb) {
         console.error('slice', sync, end);
         buf = Buffer.concat([buf.slice(0, index), buf.slice(sync)]);
         end -= sync-index;
+        continue;
       }
 
       var pcr = parsePCR(buf, index);