FFmpeg
Data Structures | Functions | Variables
rtpdec_latm.c File Reference
#include "avio_internal.h"
#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 void latm_close_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, const char *value)
 
static int parse_fmtp (AVFormatContext *s, AVStream *stream, PayloadContext *data, const char *attr, const char *value)
 
static int latm_parse_sdp_line (AVFormatContext *s, int st_index, PayloadContext *data, const char *line)
 

Variables

const RTPDynamicProtocolHandler ff_mp4a_latm_dynamic_handler
 

Function Documentation

◆ latm_close_context()

static void latm_close_context ( PayloadContext data)
static

Definition at line 35 of file rtpdec_latm.c.

◆ latm_parse_packet()

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 41 of file rtpdec_latm.c.

◆ parse_fmtp_config()

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

Definition at line 92 of file rtpdec_latm.c.

Referenced by parse_fmtp().

◆ parse_fmtp()

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

Definition at line 131 of file rtpdec_latm.c.

Referenced by ff_parse_fmtp(), and latm_parse_sdp_line().

◆ latm_parse_sdp_line()

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

Definition at line 151 of file rtpdec_latm.c.

Variable Documentation

◆ ff_mp4a_latm_dynamic_handler

const RTPDynamicProtocolHandler ff_mp4a_latm_dynamic_handler
Initial value:
= {
.enc_name = "MP4A-LATM",
.codec_type = AVMEDIA_TYPE_AUDIO,
.codec_id = AV_CODEC_ID_AAC,
.priv_data_size = sizeof(PayloadContext),
.parse_sdp_a_line = latm_parse_sdp_line,
}

Definition at line 165 of file rtpdec_latm.c.

parse_packet
static int parse_packet(AVFormatContext *s, AVPacket *pkt, int stream_index)
Parse a packet, add all split parts to parse_queue.
Definition: utils.c:1451
latm_parse_sdp_line
static int latm_parse_sdp_line(AVFormatContext *s, int st_index, PayloadContext *data, const char *line)
Definition: rtpdec_latm.c:151
latm_close_context
static void latm_close_context(PayloadContext *data)
Definition: rtpdec_latm.c:35
AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
AV_CODEC_ID_AAC
@ AV_CODEC_ID_AAC
Definition: avcodec.h:566
latm_parse_packet
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)
Definition: rtpdec_latm.c:41
PayloadContext
RTP/JPEG specific private data.
Definition: rdt.c:83