FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
rtpdec_latm.c File Reference
#include "rtpdec_formats.h"
#include "internal.h"
#include "libavutil/avstring.h"
#include "libavcodec/get_bits.h"

Go to the source code of this file.

Data Structures

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

Functions

static PayloadContextlatm_new_context (void)
 
static void latm_free_context (PayloadContext *data)
 
static int latm_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_fmtp_config (AVStream *st, char *value)
 
static int parse_fmtp (AVStream *stream, PayloadContext *data, char *attr, char *value)
 
static int latm_parse_sdp_line (AVFormatContext *s, int st_index, PayloadContext *data, const char *line)
 

Variables

RTPDynamicProtocolHandler ff_mp4a_latm_dynamic_handler
 

Function Documentation

static PayloadContext* latm_new_context ( void  )
static

Definition at line 34 of file rtpdec_latm.c.

static void latm_free_context ( PayloadContext data)
static

Definition at line 39 of file rtpdec_latm.c.

static int latm_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 52 of file rtpdec_latm.c.

static int parse_fmtp_config ( AVStream st,
char *  value 
)
static

Definition at line 106 of file rtpdec_latm.c.

Referenced by parse_fmtp().

static int parse_fmtp ( AVStream stream,
PayloadContext data,
char *  attr,
char *  value 
)
static

Definition at line 145 of file rtpdec_latm.c.

Referenced by ff_parse_fmtp(), and latm_parse_sdp_line().

static int latm_parse_sdp_line ( AVFormatContext s,
int  st_index,
PayloadContext data,
const char *  line 
)
static

Definition at line 164 of file rtpdec_latm.c.

Variable Documentation

RTPDynamicProtocolHandler ff_mp4a_latm_dynamic_handler
Initial value:
= {
.enc_name = "MP4A-LATM",
.codec_type = AVMEDIA_TYPE_AUDIO,
.codec_id = AV_CODEC_ID_AAC,
.parse_sdp_a_line = latm_parse_sdp_line,
.alloc = latm_new_context,
.parse_packet = latm_parse_packet
}

Definition at line 178 of file rtpdec_latm.c.

Referenced by ff_register_rtp_dynamic_payload_handlers().