mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-12-13 17:45:45 +00:00
* Move PosterWithAudio to FFMpegCore
* Reduce windows only tests
* Update Directory.Build.props
* Create .editorconfig
* More cleanup
* Enable implicit usings
* Remove unused method
* Apply dotnet format
* Fix unused variable in AudioGateArgument
* Fix boolean conditions in AudioGateArgument
* Merge boolean conditions into pattern
* Use target-typed new
* Add linting to CI
* Add CUDA to HardwareAccelerationDevice enum
* Increase timeout for Video_Join_Image_Sequence
* Adjust Video_Join_Image_Sequence timeout
* Fix expected seconds in Video_Join_Image_Sequence
* Increase timeout for Video_TranscodeToMemory due to macos agents
Former-commit-id: f9f7161686
27 lines
708 B
C#
27 lines
708 B
C#
namespace FFMpegCore.Arguments
|
|
{
|
|
public class AudibleEncryptionKeyArgument : IArgument
|
|
{
|
|
private readonly bool _aaxcMode;
|
|
|
|
private readonly string? _key;
|
|
private readonly string? _iv;
|
|
|
|
private readonly string? _activationBytes;
|
|
|
|
public AudibleEncryptionKeyArgument(string activationBytes)
|
|
{
|
|
_activationBytes = activationBytes;
|
|
}
|
|
|
|
public AudibleEncryptionKeyArgument(string key, string iv)
|
|
{
|
|
_aaxcMode = true;
|
|
|
|
_key = key;
|
|
_iv = iv;
|
|
}
|
|
|
|
public string Text => _aaxcMode ? $"-audible_key {_key} -audible_iv {_iv}" : $"-activation_bytes {_activationBytes}";
|
|
}
|
|
}
|