FFmpeg
Loading...
Searching...
No Matches
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/AV1 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.

Referenced by ac3_handle_packet().

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),
}
static av_cold void close(AVCodecParserContext *s)
Definition apv_parser.c:197
@ AVSTREAM_PARSE_FULL
full parsing and repack
Definition avformat.h:611
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:1178
@ AV_CODEC_ID_AC3
Definition codec_id.h:456
@ AVMEDIA_TYPE_AUDIO
Definition avutil.h:201
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
static void ac3_close_context(PayloadContext *data)
Definition rtpdec_ac3.c:35
RTP/AV1 specific private data.
Definition rdt.c:85

Definition at line 125 of file rtpdec_ac3.c.