FFmpeg
Loading...
Searching...
No Matches
rtpdec_mpa_robust.c File Reference

Go to the source code of this file.

Data Structures

struct  PayloadContext
 RTP/AV1 specific private data. More...
 

Functions

static void mpa_robust_close_context (PayloadContext *data)
 
static int mpa_robust_parse_rtp_header (AVFormatContext *ctx, const uint8_t *buf, int len, unsigned *adu_size, unsigned *cont)
 
static int mpa_robust_parse_packet (AVFormatContext *ctx, PayloadContext *data, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, uint16_t seq, int flags)
 

Variables

const RTPDynamicProtocolHandler ff_mpeg_audio_robust_dynamic_handler
 

Function Documentation

◆ mpa_robust_close_context()

static void mpa_robust_close_context ( PayloadContext * data)
static

Definition at line 38 of file rtpdec_mpa_robust.c.

◆ mpa_robust_parse_rtp_header()

static int mpa_robust_parse_rtp_header ( AVFormatContext * ctx,
const uint8_t * buf,
int len,
unsigned * adu_size,
unsigned * cont )
static

Definition at line 44 of file rtpdec_mpa_robust.c.

Referenced by mpa_robust_parse_packet().

◆ mpa_robust_parse_packet()

static int mpa_robust_parse_packet ( AVFormatContext * ctx,
PayloadContext * data,
AVStream * st,
AVPacket * pkt,
uint32_t * timestamp,
const uint8_t * buf,
int len,
uint16_t seq,
int flags )
static

Definition at line 67 of file rtpdec_mpa_robust.c.

Variable Documentation

◆ ff_mpeg_audio_robust_dynamic_handler

const RTPDynamicProtocolHandler ff_mpeg_audio_robust_dynamic_handler
Initial value:
= {
.enc_name = "mpa-robust",
.codec_type = AVMEDIA_TYPE_AUDIO,
.codec_id = AV_CODEC_ID_MP3ADU,
.need_parsing = AVSTREAM_PARSE_HEADERS,
.priv_data_size = sizeof(PayloadContext),
}
static av_cold void close(AVCodecParserContext *s)
Definition apv_parser.c:197
@ AVSTREAM_PARSE_HEADERS
Only parse headers, do not repack.
Definition avformat.h:612
static int parse_packet(AVFormatContext *s, AVPacket *pkt, int stream_index, int flush)
Parse a packet, add all split parts to parse_queue.
Definition demux.c:1178
@ AV_CODEC_ID_MP3ADU
Definition codec_id.h:466
@ AVMEDIA_TYPE_AUDIO
Definition avutil.h:201
static void mpa_robust_close_context(PayloadContext *data)
static int mpa_robust_parse_packet(AVFormatContext *ctx, PayloadContext *data, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, uint16_t seq, int flags)
RTP/AV1 specific private data.
Definition rdt.c:85

Definition at line 193 of file rtpdec_mpa_robust.c.