typedef struct AVPacket {
/**
* A reference to the reference-counted buffer where the packet data is
* stored.
* May be NULL, then the packet data is not reference-counted.
*/
AVBufferRef *buf;
/**
* Presentation timestamp in AVStream->time_base units; the time at which
* the decompressed packet will be presented to the user.
* Can be AV_NOPTS_VALUE if it is not stored in the file.
* pts MUST be larger or equal to dts as presentation cannot happen before
* decompression, unless one wants to view hex dumps. Some formats misuse
* the terms dts and pts/cts to mean something different. Such timestamps
* must be converted to true pts/dts before they are stored in AVPacket.
*/
int64_t pts;
/**
* Decompression timestamp in AVStream->time_base units; the time at which
* the packet is decompressed.
* Can be AV_NOPTS_VALUE if it is not stored in the file.
*/
int64_t dts;
uint8_t *data;
//Size of data in bytes.
int size;
int stream_index;
/**
* A combination of AV_PKT_FLAG values
*/
int flags;
/**
* Additional packet data that can be provided by the container.
* Packet can contain several types of side information.
*/
AVPacketSideData *side_data;
int side_data_elems;
/**
* Duration of this packet in AVStream->time_base units, 0 if unknown.
* Equals next_pts - this_pts in presentation order.
*/
int64_t duration;
int64_t pos; ///< byte position in stream, -1 if unknown
} AVPacket;
ffmpeg源码学习之AVPacket
原创
©著作权归作者所有:来自51CTO博客作者Ai_Yang的原创作品,请联系作者获取转载授权,否则将追究法律责任
下一篇:音视频监控指标
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
【Spring Boot 源码学习】自动装配流程源码解析(上)
本篇从Spring Boot 自动装配源码入手,分析自动配置组件加载的流程
Spring Boot 源码学习 自动装配流程源码 -
ffmpeg源码学习之AVPacket
typedef struct AVPacket { /** * A reference to the reference-cou
webview android java ide sed -
FFMPEG结构体分析 AVPacket
AVPacket是存储压缩编码数据相关信息的结构体。
ffmpeg AVPacket 时间戳 码流 数据