av_frame_get_buffer
时间: 2023-08-20 15:04:37 浏览: 210
av_frame_get_buffer是一个用于为音频或视频数据分配新的缓冲区的函数。在调用这个函数之前,需要在音视频帧上设置一些字段,比如format(视频的像素格式,音频的采样格式)、width和height(视频的宽度和高度)、nb_samples和channel_layout(音频的样本数和声道布局)。这个函数会填充AVFrame.data和AVFrame.buf数组,并且如果需要的话,还会分配和填充AVFrame.extended_data和AVFrame.extended_buf。\[1\]
#### 引用[.reference_title]
- *1* *2* [ffmpeg内存管理及API](https://blog.csdn.net/wangbuji/article/details/121634502)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [【FFMPEG】AVFrame中buffer分配的两种方式](https://blog.csdn.net/Blaze_bxh/article/details/80010857)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文