fix: crash when processing audio

This commit is contained in:
2025-09-14 21:10:02 +08:00
parent e8238dac54
commit c1b8618391
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -1,6 +1,7 @@
[submodule "ext/core"]
path = ext/core
url = https://github.com/OliveCommunity/core.git
branch = dev
[submodule "ext/KDDockWidgets"]
path = ext/KDDockWidgets
url = https://github.com/olive-editor/KDDockWidgets.git
+1 -1
View File
@@ -629,7 +629,7 @@ bool FFmpegDecoder::ConformAudioInternal(const QVector<QString> &filenames,
}
// Create resampling context
AVChannelLayout layout = params.channel_layout();
SwrContext *resampler;
SwrContext *resampler=NULL;
swr_alloc_set_opts2(
&resampler, &layout,
FFmpegUtils::GetFFmpegSampleFormat(params.format()),