Skip to content

Commit c50edda

Browse files
committed
Fixed endcut calculation for 'videoframes' input mode
1 parent 53b2068 commit c50edda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/delaycut.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,10 +506,10 @@ void DelayCut::execCLI(int argc)
506506
fprintf(stderr, "Start cut value is larger than length of file.\n");
507507
exit(EXIT_FAILURE);
508508
}
509-
checkVal = endCut * fps;
509+
checkVal = endCut / fps;
510510
if (checkVal > length)
511511
{
512-
endCut = Delayac3::round(length * fps);
512+
endCut = Delayac3::round(length / fps);
513513
fprintf(stdout, "End cut value is larger than length of file. Truncating to %d frames.\n", (int) endCut);
514514
}
515515
}

0 commit comments

Comments
 (0)