FFmpeg
Data Structures | Macros | Functions | Variables
rtpdec_ac3.c File Reference
#include "avformat.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...
 

Macros

#define RTP_AC3_PAYLOAD_HEADER_SIZE   2
 

Functions

static void ac3_close_context (PayloadContext *data)
 
static int ac3_handle_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_ac3_dynamic_handler
 

Macro Definition Documentation

◆ RTP_AC3_PAYLOAD_HEADER_SIZE

#define RTP_AC3_PAYLOAD_HEADER_SIZE   2

Definition at line 26 of file rtpdec_ac3.c.

Function Documentation

◆ ac3_close_context()

static void ac3_close_context ( PayloadContext data)
static

Definition at line 35 of file rtpdec_ac3.c.

◆ ac3_handle_packet()

static int ac3_handle_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 40 of file rtpdec_ac3.c.

Variable Documentation

◆ ff_ac3_dynamic_handler

const RTPDynamicProtocolHandler ff_ac3_dynamic_handler
Initial value:
= {
.enc_name = "ac3",
.codec_type = AVMEDIA_TYPE_AUDIO,
.codec_id = AV_CODEC_ID_AC3,
.need_parsing = AVSTREAM_PARSE_FULL,
.priv_data_size = sizeof(PayloadContext),
}

Definition at line 125 of file rtpdec_ac3.c.

AV_CODEC_ID_AC3
@ AV_CODEC_ID_AC3
Definition: codec_id.h:449
ac3_close_context
static void ac3_close_context(PayloadContext *data)
Definition: rtpdec_ac3.c:35
AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
ac3_handle_packet
static int ac3_handle_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_ac3.c:40
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:1162
AVSTREAM_PARSE_FULL
@ AVSTREAM_PARSE_FULL
full parsing and repack
Definition: avformat.h:593
PayloadContext
RTP/JPEG specific private data.
Definition: rdt.c:85