@defgroup lavc_packet AVPacket
Copy packet, including contents
Copy packet side data
@warning This is a hack - the packet memory allocation stuff is broken. The packet is allocated if it was not really allocated.
Free a packet.
Increase packet size, correctly zeroing padding
Initialize optional fields of a packet with default values.
Allocate the payload of a packet and initialize its fields with default values.
Wrap an existing array as a packet side data.
Allocate an AVPacket and set its fields to default values. The resulting struct must be freed using av_packet_free().
Create a new packet that references the same data as src.
Copy only "properties" fields from src to dst.
Free the packet, if the packet is reference counted, it will be unreferenced first.
Convenience function to free all the side data stored. All the other fields stay untouched.
Initialize a reference-counted packet from av_malloc()ed data.
Get side information from packet.
Ensure the data described by a given packet is reference counted.
Create a writable reference for the data described by a given packet, avoiding data copy if possible.
Move every field in src to dst and reset src.
Allocate new information of a packet.
Pack a dictionary for use in side_data.
Setup a new reference to the data described by a given packet
Convert valid timing fields (timestamps / durations) in a packet from one timebase to another. Timestamps with unknown values (AV_NOPTS_VALUE) will be ignored.
Shrink the already allocated side data buffer
Unpack a dictionary from side_data.
Wipe the packet.
Reduce packet size, correctly zeroing padding
< The packet content is corrupted
Flag is used to discard packets which are required to maintain valid decoder state but are not required for output and should be dropped after decoding.
Flag is used to indicate packets that contain frames that can be discarded by the decoder. I.e. Non-reference frames.
< The packet contains a keyframe
The packet comes from a trusted source.
This structure stores compressed data. It is typically exported by demuxers and then passed as input to decoders, or received as output from encoders and then passed to muxers.