FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
rtpdec_mpa_robust.c File Reference
#include "libavutil/attributes.h"
#include "libavutil/intreadwrite.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

static void mpa_robust_close_context ( PayloadContext data)
static

Definition at line 37 of file rtpdec_mpa_robust.c.

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

Definition at line 43 of file rtpdec_mpa_robust.c.

Referenced by 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 66 of file rtpdec_mpa_robust.c.

Variable Documentation

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),
}
RTP/JPEG specific private data.
Definition: rdt.c:83
Only parse headers, do not repack.
Definition: avformat.h:794
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)
static int parse_packet(AVFormatContext *s, AVPacket *pkt, int stream_index)
Parse a packet, add all split parts to parse_queue.
Definition: utils.c:1437

Definition at line 192 of file rtpdec_mpa_robust.c.