mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01: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>
|
/// <summary>
|
||||||
/// Represents seek parameter
|
/// Represents seek parameter
|
||||||
|
@ -14,15 +12,18 @@ public EndSeekArgument(TimeSpan? seekTo)
|
||||||
SeekTo = seekTo;
|
SeekTo = seekTo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public string Text {
|
public string Text
|
||||||
get {
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
if (SeekTo.HasValue)
|
if (SeekTo.HasValue)
|
||||||
{
|
{
|
||||||
int hours = SeekTo.Value.Hours;
|
var hours = SeekTo.Value.Hours;
|
||||||
if (SeekTo.Value.Days > 0)
|
if (SeekTo.Value.Days > 0)
|
||||||
{
|
{
|
||||||
hours += SeekTo.Value.Days * 24;
|
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")}";
|
return $"-to {hours.ToString("00")}:{SeekTo.Value.Minutes.ToString("00")}:{SeekTo.Value.Seconds.ToString("00")}.{SeekTo.Value.Milliseconds.ToString("000")}";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue