Skip to content

Commit

Permalink
fix #61 - use length instead of end for chapter splitting
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas committed Nov 23, 2019
1 parent 2e5e4d1 commit cb0b121
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/library/M4bTool/Command/SplitCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit cb0b121

Please sign in to comment.