From cb0b1212d4ed8355eecd168551efb4fe757ba607 Mon Sep 17 00:00:00 2001 From: andreas Date: Sat, 23 Nov 2019 09:51:59 +0100 Subject: [PATCH] fix #61 - use length instead of end for chapter splitting --- src/library/M4bTool/Command/SplitCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/library/M4bTool/Command/SplitCommand.php b/src/library/M4bTool/Command/SplitCommand.php index 6be2bae..467b2fc 100644 --- a/src/library/M4bTool/Command/SplitCommand.php +++ b/src/library/M4bTool/Command/SplitCommand.php @@ -336,7 +336,7 @@ private function extractChapter(Chapter $chapter, SplFileInfo $outputFile, Tag $ $convertOptions = $this->buildFileConverterOptions($this->argInputFile, $outputFile, $outputFile->getPath()); $convertOptions->tag = $tag; - $process = $this->ffmpeg->extractPartOfFile($chapter->getStart(), $chapter->getEnd(), $convertOptions); + $process = $this->ffmpeg->extractPartOfFile($chapter->getStart(), $chapter->getLength(), $convertOptions); if ($process) { $process->wait();