fix seeking content with dts audio (#2581)
* fix seeking content with dts audio * formatting
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using ErsatzTV.FFmpeg.Environment;
|
||||
using ErsatzTV.FFmpeg.InputOption;
|
||||
|
||||
namespace ErsatzTV.FFmpeg.Decoder;
|
||||
|
||||
public class DecoderDtsCoreOnly : IInputOption
|
||||
{
|
||||
public EnvironmentVariable[] EnvironmentVariables => [];
|
||||
public string[] GlobalOptions => [];
|
||||
public string[] FilterOptions => [];
|
||||
public string[] OutputOptions => [];
|
||||
|
||||
public string[] InputOptions(InputFile inputFile) => ["-c:a", "dts", "-core_only", "true"];
|
||||
|
||||
public FrameState NextState(FrameState currentState) => currentState;
|
||||
|
||||
public bool AppliesTo(AudioInputFile audioInputFile) => true;
|
||||
|
||||
public bool AppliesTo(VideoInputFile videoInputFile) => false;
|
||||
|
||||
public bool AppliesTo(ConcatInputFile concatInputFile) => false;
|
||||
|
||||
public bool AppliesTo(GraphicsEngineInput graphicsEngineInput) => false;
|
||||
}
|
||||
Reference in New Issue
Block a user