17#ifndef FFMPEG_PACKET_H
18#define FFMPEG_PACKET_H
77 AVPacket*
clone()
const;
93 const AVPacket*
get()
const;
102 operator const AVPacket*()
const;
RAII wrapper for AVPacket.
AVPacket * clone() const
Clone packet to a new AVPacket*. Caller owns the returned packet.
void unref()
Unreference packet payload, keep the AVPacket object allocated.
AVPacket * m_packet
Pointer to underlying AVPacket struct.
void free()
Free the underlying packet.
virtual ~FFmpeg_Packet()
Free the underlying packet.
AVPacket * operator->()
operator ->: behave like a packet pointer.
int res() const
Get result of last operation.
int m_res
0 if last operation was successful, or negative AVERROR value
AVPacket * get()
Access the underlying packet.
FFmpeg_Packet & operator=(const FFmpeg_Packet &packet) noexcept
Deep-copy assign from another wrapper.
Various FFmpegfs utility functions.
#define INVALID_STREAM
Denote an invalid stream.