Move Codec From Normal Config to Encoding Config

This commit is contained in:
copecone committed 2026-07-17 15:50:22 +09:00
1 parent 742a9d594c
commit fd4c5b051e
7 files changed
+51 -14

No files matched your search

+2 -2
View File
@@ -388,7 +388,7 @@ namespace ADOFAIRenderer.Core
private IEnumerator SetupPlay()
{
if (Configuration.RenderAudio && GetOutputExtension(Configuration.Codec) != ".mp4")
if (Configuration.RenderAudio && GetOutputExtension(Configuration.EncodingConfig!.Codec) != ".mp4")
{
Configuration.AudioSampleRate = 48000;
}
@@ -476,7 +476,7 @@ namespace ADOFAIRenderer.Core
var renderFPS = Configuration.RenderFPS;
var videoFPS = Configuration.VideoFPS;
var selectedCodec = Configuration.Codec;
var selectedCodec = Configuration.EncodingConfig?.Codec ?? Codec.H264;
var ext = GetOutputExtension(selectedCodec);
var startTime = DateTime.Now;