28 const uint8_t *buf,
int len, uint16_t seq,
47 memcpy(
pkt->data, buf,
len);
57 .static_payload_id = 14,
65 .static_payload_id = 32,
#define flags(name, subs,...)
@ AV_CODEC_ID_MP3
preferred ID for decoding MPEG audio layer 1, 2 or 3
@ AV_CODEC_ID_MPEG2VIDEO
preferred ID for MPEG-1/2 video decoding
int av_new_packet(AVPacket *pkt, int size)
Allocate the payload of a packet and initialize its fields with default values.
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
Macro definitions for various function/variable attributes.
static int mpeg_parse_packet(AVFormatContext *ctx, PayloadContext *data, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, uint16_t seq, int flags)
enum AVMediaType codec_type
General type of the encoded data.
This structure stores compressed data.
AVCodecParameters * codecpar
Codec parameters associated with this stream.
int index
stream index in AVFormatContext
RTP/AV1 specific private data.
static AVFormatContext * ctx