mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-12-14 01:55:45 +00:00
Change fps parameter to double
This commit is contained in:
parent
3c3da28a99
commit
6b1e34ce08
3 changed files with 4 additions and 5 deletions
|
|
@ -4,12 +4,11 @@ namespace FFMpegCore.Arguments;
|
|||
|
||||
public class GifPaletteArgument : IArgument
|
||||
{
|
||||
private readonly int _fps;
|
||||
|
||||
private readonly double _fps;
|
||||
private readonly Size? _size;
|
||||
private readonly int _streamIndex;
|
||||
|
||||
public GifPaletteArgument(int streamIndex, int fps, Size? size)
|
||||
public GifPaletteArgument(int streamIndex, double fps, Size? size)
|
||||
{
|
||||
_streamIndex = streamIndex;
|
||||
_fps = fps;
|
||||
|
|
|
|||
|
|
@ -258,7 +258,7 @@ public class FFMpegArgumentOptions : FFMpegArgumentsBase
|
|||
return WithArgument(new ID3V2VersionArgument(id3v2Version));
|
||||
}
|
||||
|
||||
public FFMpegArgumentOptions WithGifPaletteArgument(int streamIndex, Size? size, int fps = 12)
|
||||
public FFMpegArgumentOptions WithGifPaletteArgument(int streamIndex, Size? size, double fps = 12)
|
||||
{
|
||||
return WithArgument(new GifPaletteArgument(streamIndex, fps, size));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ public static class SnapshotArgumentBuilder
|
|||
TimeSpan? captureTime = null,
|
||||
TimeSpan? duration = null,
|
||||
int? streamIndex = null,
|
||||
int fps = 12)
|
||||
double fps = 12)
|
||||
{
|
||||
var defaultGifOutputSize = new Size(480, -1);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue