From 3c9e4d6f4b213f9f9cc6a41e9a64475f6144cf8d Mon Sep 17 00:00:00 2001 From: Mark van Renswoude Date: Sun, 7 Aug 2016 23:00:45 +0200 Subject: [PATCH] Fixed two typos --- processor-ffmpeg.js | 2 +- processor-http-ffmpeg.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/processor-ffmpeg.js b/processor-ffmpeg.js index 2aebdce..bf8b8df 100644 --- a/processor-ffmpeg.js +++ b/processor-ffmpeg.js @@ -41,7 +41,7 @@ FFMPEGProcessor.prototype.run = function() var command = new FfmpegCommand(); command .input(this.cam.options.input) - .inputOptions(['-t ' + ceil(this.cam.options.time / 1000), + .inputOptions(['-t ' + Math.ceil(this.cam.options.time / 1000), '-rtsp_transport tcp']); if (typeof(this.cam.options.inputFormat) !== 'undefined') diff --git a/processor-http-ffmpeg.js b/processor-http-ffmpeg.js index f940e0c..ffeec0c 100644 --- a/processor-http-ffmpeg.js +++ b/processor-http-ffmpeg.js @@ -26,7 +26,7 @@ HTTPFFMPEGProcessor.prototype.run = function() camId: this.camId }); - this.tempFilename = filename + '.recording'; + this.tempFilename = this.filename + '.recording'; var command = new FfmpegCommand();