FFmpeg
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 void mpegts_close_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

const RTPDynamicProtocolHandler ff_mpegts_dynamic_handler
 

Function Documentation

◆ mpegts_close_context()

static void mpegts_close_context ( PayloadContext data)
static

Definition at line 33 of file rtpdec_mpegts.c.

◆ mpegts_init()

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

Definition at line 41 of file rtpdec_mpegts.c.

◆ mpegts_handle_packet()

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 50 of file rtpdec_mpegts.c.

Variable Documentation

◆ ff_mpegts_dynamic_handler

const RTPDynamicProtocolHandler ff_mpegts_dynamic_handler
Initial value:
= {
.codec_type = AVMEDIA_TYPE_DATA,
.priv_data_size = sizeof(PayloadContext),
.static_payload_id = 33,
}

Definition at line 92 of file rtpdec_mpegts.c.

mpegts_init
static av_cold int mpegts_init(AVFormatContext *ctx, int st_index, PayloadContext *data)
Definition: rtpdec_mpegts.c:41
init
static int init
Definition: av_tx.c:47
AVMEDIA_TYPE_DATA
@ AVMEDIA_TYPE_DATA
Opaque data information usually continuous.
Definition: avutil.h:203
mpegts_handle_packet
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:50
parse_packet
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:1118
PayloadContext
RTP/JPEG specific private data.
Definition: rdt.c:83
mpegts_close_context
static void mpegts_close_context(PayloadContext *data)
Definition: rtpdec_mpegts.c:33