Browse Source

update PCR_error detection

Gil Pedersen 13 năm trước cách đây
mục cha
commit
2f1878b4ef
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lib/tssmooth.js

+ 1 - 1
lib/tssmooth.js

@@ -76,7 +76,7 @@ function TsSmooth(options) {
     }
 
     var delta = pcrtime - self.pcrtime;
-    if (delta > 100E3 || delta < -500E3) {
+    if (delta > 100E3 || delta < 0) {
       console.error('PCR_error: '+(delta/1E6).toFixed(2)+'s missing');
       var now = utime();
       var error = now - pcrtime;