关于av_get_channel_layout_nb_channels函数

问题:ffmpeg5.1 使用av_get_channel_layout_nb_channels函数时报错。

过程:经过检查,发现对应头文件内已经不包含该函数。遂查找资料,发现在ffmpeg5.1之后该函数被废弃,具体而言,新增了AVChannelLayout。

  • av_get_channel_layout_nb_channels() , use AVChannelLayout.nb_channels instead
  • AVFrame->channel_layout, use AVFrame->ch_layout instead
  • AVFrame->channels, use `AVFrame->ch_layout instead

你可能感兴趣的:(qt,ffmpeg)