mirror of
https://gitee.com/xia-chu/ZLMediaKit.git
synced 2026-05-22 09:37:49 +08:00
修复编译问题
This commit is contained in:
parent
e677e41502
commit
0b1f9fb194
@ -103,7 +103,7 @@ int main(int argc, char *argv[]) {
|
|||||||
chs = (&frame->get()->ch_layout)->nb_channels;
|
chs = (&frame->get()->ch_layout)->nb_channels;
|
||||||
#else
|
#else
|
||||||
swr = std::make_shared<FFmpegSwr>(AV_SAMPLE_FMT_S16, frame->get()->channels, frame->get()->channel_layout, frame->get()->sample_rate);
|
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
|
#endif
|
||||||
}
|
}
|
||||||
auto pcm = swr->inputFrame(frame);
|
auto pcm = swr->inputFrame(frame);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user