mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-12-14 10:05:44 +00:00
18 lines
426 B
C#
18 lines
426 B
C#
using System;
|
|
|
|
namespace FFMpegCore.Arguments
|
|
{
|
|
/// <summary>
|
|
/// Represents duration parameter
|
|
/// </summary>
|
|
public class DurationArgument : IArgument
|
|
{
|
|
public readonly TimeSpan? Duration;
|
|
public DurationArgument(TimeSpan? duration)
|
|
{
|
|
Duration = duration;
|
|
}
|
|
|
|
public string Text => !Duration.HasValue ? string.Empty : $"-t {Duration.Value}";
|
|
}
|
|
}
|