请问输出缓冲区的大小dst_linesize是会自动扩充几个字节吗?
// 重采样的返回值为实际转换样本数
real_convert_samples = swr_convert(swr_ctx, // 重采样上下文
dst_data, // 重采样输出缓冲区
out_nb_samples, // 输出单通道最大采样数,可以设置大一些
(const uint8_t **)src_data, // 重采样输入缓冲区
22050); // 输入单通道采样数
av_log(NULL, AV_LOG_INFO, "real convert samples = %d,dst_linesize=%d\n",
real_convert_samples, dst_linesize);
运行时打印为
[dshow @ 000001958b1f50c0] passing through packet of type audio size 88200 timestamp 544073420000 orig timestamp 544073420000 graph timestamp 544078420000 diff 5000000 麦克风阵列 (Realtek(R) Audio)
packet size is 88200(000001958ca4f580),count = 20
real convert samples = 22050,dst_linesize=176640