rtpdec_mpegts.c File Reference
#include "mpegts.h"
#include "rtpdec_formats.h"
Include dependency graph for rtpdec_mpegts.c:

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 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 void mpegts_free_context ( PayloadContext data)
static

Definition at line 37 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 54 of file rtpdec_mpegts.c.

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

Definition at line 46 of file rtpdec_mpegts.c.

static PayloadContext* mpegts_new_context ( void  )
static

Definition at line 32 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,
}
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)
Definition: rtpdec_mpegts.c:54
Opaque data information usually continuous.
Definition: avutil.h:145
static void mpegts_free_context(PayloadContext *data)
Definition: rtpdec_mpegts.c:37
static PayloadContext * mpegts_new_context(void)
Definition: rtpdec_mpegts.c:32
static int mpegts_init(AVFormatContext *ctx, int st_index, PayloadContext *data)
Definition: rtpdec_mpegts.c:46

Definition at line 99 of file rtpdec_mpegts.c.

Referenced by av_register_rtp_dynamic_payload_handlers().