mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-01-18 20:46:43 +00:00
chore: apply changes to format end seek
This commit is contained in:
parent
98fdaf424b
commit
59d43bb1c3
1 changed files with 9 additions and 8 deletions
|
@ -1,6 +1,4 @@
|
|||
using System;
|
||||
|
||||
namespace FFMpegCore.Arguments
|
||||
namespace FFMpegCore.Arguments
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents seek parameter
|
||||
|
@ -14,15 +12,18 @@ public EndSeekArgument(TimeSpan? seekTo)
|
|||
SeekTo = seekTo;
|
||||
}
|
||||
|
||||
public string Text {
|
||||
get {
|
||||
if(SeekTo.HasValue)
|
||||
public string Text
|
||||
{
|
||||
int hours = SeekTo.Value.Hours;
|
||||
if(SeekTo.Value.Days > 0)
|
||||
get
|
||||
{
|
||||
if (SeekTo.HasValue)
|
||||
{
|
||||
var hours = SeekTo.Value.Hours;
|
||||
if (SeekTo.Value.Days > 0)
|
||||
{
|
||||
hours += SeekTo.Value.Days * 24;
|
||||
}
|
||||
|
||||
return $"-to {hours.ToString("00")}:{SeekTo.Value.Minutes.ToString("00")}:{SeekTo.Value.Seconds.ToString("00")}.{SeekTo.Value.Milliseconds.ToString("000")}";
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue