gpt4 book ai didi

c++ - FFmpeg av_read_frame 和最大数据包大小

转载 作者:塔克拉玛干 更新时间:2023-11-03 02:19:11 28 4
gpt4 key购买 nike

是否有可能检测到 av_read_frame() 可以读取的最大数据包 (AVpacket) 大小?

最佳答案

我最近也在找同样的东西。似乎 av_read_frame 在内部为每个编解码器/格式调用编解码器特定的 read_packet 函数。这反过来为每个数据包分配内存并根据编解码器/格式构成的最大限制释放它。因此,只要您有内存来支持(无效)流,您就应该没问题,并且限制特定于编解码器/格式解码器。 [您可以找到在 AVInputFormat 中为每种格式定义的函数,如 .read_packet ]。

关于c++ - FFmpeg av_read_frame 和最大数据包大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11189741/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com