從AVFrame中取出音頻裸數據到一個buffer中

      在ffmpeg,音頻數據會保存在AVFrame中extended_data數組中,若是是打包模式(packed),就只用extended_data[0];若是是planar模式,則每一個channel分別保存在extended_data[i]中。對於音頻,只有linesize[0]有效,打包模式保存整個音頻幀的buff大小,planar模式保存每一個channel的buff大小。數組
相關文章
相關標籤/搜索