试图解决编译错误

This commit is contained in:
Mike Solar
2025-06-19 21:01:45 +08:00
parent c04fceef9b
commit e18cf095f5
10 changed files with 47 additions and 20 deletions
+3 -1
View File
@@ -219,9 +219,11 @@ void ViewerOutput::set_default_parameters()
OLIVE_CONFIG("DefaultSequenceInterlacing").value<VideoParams::Interlacing>(),
VideoParams::generate_auto_divider(width, height)
));
AVChannelLayout layout;
av_channel_layout_from_mask(&layout, OLIVE_CONFIG("DefaultSequenceAudioLayout").toULongLong());
SetAudioParams(AudioParams(
OLIVE_CONFIG("DefaultSequenceAudioFrequency").toInt(),
OLIVE_CONFIG("DefaultSequenceAudioLayout").toULongLong(),
layout,
kDefaultSampleFormat
));
}