FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
rtpdec_mpeg12.c File Reference
#include "libavutil/attributes.h"
#include "libavutil/intreadwrite.h"
#include "rtpdec_formats.h"

Go to the source code of this file.

Functions

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_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 26 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,
.need_parsing = AVSTREAM_PARSE_FULL,
.parse_packet = mpeg_parse_packet,
.static_payload_id = 14,
}
preferred ID for decoding MPEG audio layer 1, 2 or 3
Definition: avcodec.h:515
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:26
full parsing and repack
Definition: avformat.h:806

Definition at line 51 of file rtpdec_mpeg12.c.

Referenced by ff_register_rtp_dynamic_payload_handlers().

RTPDynamicProtocolHandler ff_mpeg_video_dynamic_handler
Initial value:
= {
.codec_type = AVMEDIA_TYPE_VIDEO,
.need_parsing = AVSTREAM_PARSE_FULL,
.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:26
preferred ID for MPEG-1/2 video decoding
Definition: avcodec.h:194
full parsing and repack
Definition: avformat.h:806

Definition at line 59 of file rtpdec_mpeg12.c.

Referenced by ff_register_rtp_dynamic_payload_handlers().