52 const uint8_t *buf,
int len, uint16_t seq,
64 if (
data->read_buf_index >=
data->read_buf_size)
67 data->read_buf_size -
data->read_buf_index);
70 data->read_buf_index += ret;
71 if (
data->read_buf_index <
data->read_buf_size)
85 memcpy(
data->buf, buf + ret,
data->read_buf_size);
86 data->read_buf_index = 0;
98 .static_payload_id = 33,
static AVFormatContext * ctx
static av_cold void close(AVCodecParserContext *s)
#define flags(name, subs,...)
static int parse_packet(AVFormatContext *s, AVPacket *pkt, int stream_index, int flush)
Parse a packet, add all split parts to parse_queue.
int(* init)(AVBSFContext *ctx)
@ AVMEDIA_TYPE_DATA
Opaque data information usually continuous.
Macro definitions for various function/variable attributes.
void avpriv_mpegts_parse_close(MpegTSContext *ts)
MpegTSContext * avpriv_mpegts_parse_open(AVFormatContext *s)
int avpriv_mpegts_parse_packet(MpegTSContext *ts, AVPacket *pkt, const uint8_t *buf, int len)
static int mpegts_init(AVFormatContext *s)
#define RTP_MAX_PACKET_LENGTH
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)
static void mpegts_close_context(PayloadContext *data)
This structure stores compressed data.
RTP/AV1 specific private data.
struct MpegTSContext * ts
uint8_t * buf
the temporary storage buffer