瀏覽代碼

add 'full' option to buffer argument

Gil Pedersen 13 年之前
父節點
當前提交
7d0792c301
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      bin/hlsdump

+ 4 - 1
bin/hlsdump

@@ -17,7 +17,10 @@ hlsdump.version('0.0.0')
      }
      return r;
    })
-   .option('-b, --buffer-size <bytes>', 'try to buffer <bytes> of input data (implies -s)')
+   .option('-b, --buffer-size <bytes>|full', 'try to buffer <bytes> of input data (implies -s)', function(val) {
+     if (val === 'full') return 0x80000000-1;
+     return parseInt(val, 0);
+   })
    .option('-s, --sync', 'clock sync using stream PCR')
    .option('-k, --keep-connection', 'don\'t give up once connected')
    .option('-f, --full-stream', 'fetch all stream data')