修复编译问题

This commit is contained in:
ziyuexiachu
2025-02-28 12:50:28 +08:00
parent e677e41502
commit 0b1f9fb194

View File

@@ -103,7 +103,7 @@ int main(int argc, char *argv[]) {
chs = (&frame->get()->ch_layout)->nb_channels;
#else
swr = std::make_shared<FFmpegSwr>(AV_SAMPLE_FMT_S16, frame->get()->channels, frame->get()->channel_layout, frame->get()->sample_rate);
chs = pcm->get()->channels;
chs = frame->get()->channels;
#endif
}
auto pcm = swr->inputFrame(frame);