rtpdec_mpeg12.c File Reference
Include dependency graph for rtpdec_mpeg12.c:

Go to the source code of this file.

Functions

static int mpeg_init (AVFormatContext *ctx, int st_index, PayloadContext *data)
 
static int mpeg_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

RTPDynamicProtocolHandler ff_mpeg_audio_dynamic_handler
 
RTPDynamicProtocolHandler ff_mpeg_video_dynamic_handler
 

Function Documentation

static int mpeg_init ( AVFormatContext ctx,
int  st_index,
PayloadContext data 
)
static

Definition at line 25 of file rtpdec_mpeg12.c.

static int mpeg_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 33 of file rtpdec_mpeg12.c.

Variable Documentation

RTPDynamicProtocolHandler ff_mpeg_audio_dynamic_handler
Initial value:
= {
.codec_type = AVMEDIA_TYPE_AUDIO,
.codec_id = AV_CODEC_ID_MP3,
.init = mpeg_init,
.parse_packet = mpeg_parse_packet,
.static_payload_id = 14,
}
preferred ID for decoding MPEG audio layer 1, 2 or 3
static int mpeg_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_mpeg12.c:33
static int mpeg_init(AVFormatContext *ctx, int st_index, PayloadContext *data)
Definition: rtpdec_mpeg12.c:25

Definition at line 58 of file rtpdec_mpeg12.c.

Referenced by av_register_rtp_dynamic_payload_handlers().

RTPDynamicProtocolHandler ff_mpeg_video_dynamic_handler
Initial value:
= {
.codec_type = AVMEDIA_TYPE_VIDEO,
.init = mpeg_init,
.parse_packet = mpeg_parse_packet,
.static_payload_id = 32,
}
static int mpeg_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_mpeg12.c:33
preferred ID for MPEG-1/2 video decoding
static int mpeg_init(AVFormatContext *ctx, int st_index, PayloadContext *data)
Definition: rtpdec_mpeg12.c:25

Definition at line 66 of file rtpdec_mpeg12.c.

Referenced by av_register_rtp_dynamic_payload_handlers().