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,
Macro definitions for various function/variable attributes.
static av_cold int init(AVCodecContext *avctx)
#define flags(name, subs,...)
@ AVMEDIA_TYPE_DATA
Opaque data information usually continuous.
void avpriv_mpegts_parse_close(MpegTSContext *ts)
int avpriv_mpegts_parse_packet(MpegTSContext *ts, AVPacket *pkt, const uint8_t *buf, int len)
MpegTSContext * avpriv_mpegts_parse_open(AVFormatContext *s)
#define RTP_MAX_PACKET_LENGTH
const RTPDynamicProtocolHandler ff_mpegts_dynamic_handler
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/JPEG specific private data.
struct MpegTSContext * ts
uint8_t * buf
the temporary storage buffer
enum AVMediaType codec_type