FFmpeg
Data Structures | Functions | Variables
rtpdec_mpa_robust.c File Reference
#include "libavutil/attributes.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "avio_internal.h"
#include "rtpdec_formats.h"

Go to the source code of this file.

Data Structures

struct  PayloadContext
 RTP/JPEG 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),
}

Definition at line 193 of file rtpdec_mpa_robust.c.

AV_CODEC_ID_MP3ADU
@ AV_CODEC_ID_MP3ADU
Definition: codec_id.h:453
AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
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)
Definition: rtpdec_mpa_robust.c:67
mpa_robust_close_context
static void mpa_robust_close_context(PayloadContext *data)
Definition: rtpdec_mpa_robust.c:38
AVSTREAM_PARSE_HEADERS
@ AVSTREAM_PARSE_HEADERS
Only parse headers, do not repack.
Definition: avformat.h:594
parse_packet
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:1155
PayloadContext
RTP/JPEG specific private data.
Definition: rdt.c:85