* upgrade sdk * fix warnings in ersatztv.ffmpeg * fix warnings in ersatztv.core * fix warnings in ersatztv.infrastructure * fix warnings in ersatztv.application * disable analysis for migrations projects * fix warnings in ersatztv.scanner * fix warnings in ersatztv * upgrade project framework * update github actions and dockerfiles
14 lines
370 B
C#
14 lines
370 B
C#
using System.Globalization;
|
|
|
|
namespace ErsatzTV.FFmpeg.GlobalOption;
|
|
|
|
public class ThreadCountOption : GlobalOption
|
|
{
|
|
private readonly int _threadCount;
|
|
|
|
public ThreadCountOption(int threadCount) => _threadCount = threadCount;
|
|
|
|
public override string[] GlobalOptions => new[]
|
|
{ "-threads", _threadCount.ToString(CultureInfo.InvariantCulture) };
|
|
}
|