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

Go to the source code of this file.

Data Structures

struct  PayloadContext
 RTP/JPEG specific private data. More...
 

Functions

static PayloadContextmpegts_new_context (void)
 
static void mpegts_free_context (PayloadContext *data)
 
static av_cold int mpegts_init (AVFormatContext *ctx, int st_index, PayloadContext *data)
 
static int mpegts_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

RTPDynamicProtocolHandler ff_mpegts_dynamic_handler
 

Function Documentation

static PayloadContext* mpegts_new_context ( void  )
static

Definition at line 33 of file rtpdec_mpegts.c.

static void mpegts_free_context ( PayloadContext data)
static

Definition at line 38 of file rtpdec_mpegts.c.

static av_cold int mpegts_init ( AVFormatContext ctx,
int  st_index,
PayloadContext data 
)
static

Definition at line 47 of file rtpdec_mpegts.c.

static int mpegts_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 56 of file rtpdec_mpegts.c.

Variable Documentation

RTPDynamicProtocolHandler ff_mpegts_dynamic_handler
Initial value:
= {
.codec_type = AVMEDIA_TYPE_DATA,
.parse_packet = mpegts_handle_packet,
.init = mpegts_init,
.static_payload_id = 33,
}

Definition at line 101 of file rtpdec_mpegts.c.

Referenced by ff_register_rtp_dynamic_payload_handlers().