Implement Filter-Before-Capture Structure

This commit is contained in:
copecone committed 2026-05-28 11:33:47 +09:00
1 parent 379c0360d7
commit ec06f99603
4 files changed
+70 -38

No files matched your search

+2 -2
View File
@@ -15,7 +15,7 @@ namespace ADOFAIRenderer.Util.FFmpeg
public bool IsEnd => _ffmpegProcess is { HasExited: true };
public void Execute(string command)
protected void Execute(string command)
{
if (string.IsNullOrEmpty(command))
{
@@ -39,7 +39,7 @@ namespace ADOFAIRenderer.Util.FFmpeg
public void SendDataFromBuffer(byte[] buffer, int length = -1)
{
if (_inputStream == null) return;
int writeLength = length < 0 ? buffer.Length : length;
var writeLength = length < 0 ? buffer.Length : length;
_inputStream.Write(buffer, 0, writeLength);
_inputStream.Flush();
}