mirror of
https://github.com/n00mkrad/flowframes.git
synced 2026-07-10 12:37:56 +02:00
Fixed ffmpeg progress not working on trimmed inputs
This commit is contained in:
@@ -158,7 +158,7 @@ namespace Flowframes
|
||||
public static void UpdateFfmpegProgress(string ffmpegTime)
|
||||
{
|
||||
Form1 form = Program.mainForm;
|
||||
long currInDuration = (form.currInDuration != form.currInDurationCut) ? form.currInDurationCut : form.currInDuration;
|
||||
long currInDuration = (form.currInDurationCut < form.currInDuration) ? form.currInDurationCut : form.currInDuration;
|
||||
|
||||
if (currInDuration < 1)
|
||||
{
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace Flowframes.UI
|
||||
if (endSecs <= startSecs)
|
||||
trimEndBox.Text = FormatUtils.SecsToTimestamp(startSecs + 1);
|
||||
|
||||
long dur = FormatUtils.TimestampToMs(trimStart, false) - FormatUtils.TimestampToMs(trimEnd, false);
|
||||
long dur = FormatUtils.TimestampToMs(trimEnd, false) - FormatUtils.TimestampToMs(trimStart, false);
|
||||
Program.mainForm.currInDurationCut = dur;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user