FFMPEG音频初始化失败
// 设置音频采样格式和通道布局
av_opt_set_chlayout(swrCtx, "in_channel_layout", &audioCodecCtx->ch_layout, 0);
av_opt_set_chlayout(swrCtx, "out_channel_layout", &audioCodecCtx->ch_layout, 0);
av_opt_set_int(swrCtx, "in_sample_rate", audioCodecCtx->sample_rate, 0);
av_opt_set_int(swrCtx, "out_sample_rate", audioCodecCtx->sample_rate, 0);
av_opt_set_sample_fmt(swrCtx, "in_sample_fmt", audioCodecCtx->sample_fmt, 0);
av_opt_set_sample_fmt(swrCtx, "out_sample_fmt", AV_SAMPLE_FMT_S16P, 0);
// 初始化音频采样格式转换
if (swr_init(swrCtx) < 0) {
qDebug() << "无法初始化音频采样格式转换";
//return;
}
