大家好,我用qt播放ffmpeg解码重采样的音频有杂音,有大神帮看下么

2025-05-09 12:27:32
推荐回答(1个)
回答1:

swr_alloc_set_opts 函数的输入的sample_fmt可能错了,尝试不使用AVCodecContext 里面的Sample_fmt,写成AV_SAMPLE_FMT_FLTP试试。