54 uint32_t *timestamp,
const uint8_t *buf,
59 int packing_scheme, has_payload_desc, has_packet_info, alen,
91 if ((packing_scheme =
get_bits(&gb, 2)) == 0)
98 if (has_payload_desc) {
99 int data_len,
pos, is_start, is_finish;
109 if (!is_start || !is_finish) {
111 "split over several packets");
135 #define MKTAG16(a,b) MKTAG(a,b,0,0)
153 s->nb_streams = st->
index + 1;
173 if (has_packet_info) {
182 switch (packing_scheme) {
202 if (has_marker_bit) {
254 #define RTP_QT_HANDLER(m, n, s, t) \
255 const RTPDynamicProtocolHandler ff_ ## m ## _rtp_ ## n ## _handler = { \
258 .codec_id = AV_CODEC_ID_NONE, \
259 .priv_data_size = sizeof(PayloadContext), \
260 .init = qt_rtp_init, \
261 .close = qt_rtp_close, \
262 .parse_packet = qt_rtp_parse_packet, \
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
unsigned int avio_rb16(AVIOContext *s)
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
unsigned int avio_rl16(AVIOContext *s)
int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
unsigned int avio_rl32(AVIOContext *s)
unsigned int avio_rb32(AVIOContext *s)
int ffio_init_context(AVIOContext *s, unsigned char *buffer, int buffer_size, int write_flag, void *opaque, int(*read_packet)(void *opaque, uint8_t *buf, int buf_size), int(*write_packet)(void *opaque, uint8_t *buf, int buf_size), int64_t(*seek)(void *opaque, int64_t offset, int whence))
#define flags(name, subs,...)
static int FUNC() aud(CodedBitstreamContext *ctx, RWContext *rw, H264RawAUD *current)
#define MKTAG(a, b, c, d)
bitstream reader API header.
static unsigned int get_bits1(GetBitContext *s)
static void skip_bits(GetBitContext *s, int n)
static int get_bits_count(const GetBitContext *s)
static unsigned int get_bits(GetBitContext *s, int n)
Read 1-25 bits.
static int init_get_bits(GetBitContext *s, const uint8_t *buffer, int bit_size)
Initialize GetBitContext.
#define AV_INPUT_BUFFER_PADDING_SIZE
Required number of additionally allocated bytes at the end of the input bitstream for decoding.
void av_packet_free(AVPacket **pkt)
Free the packet, if the packet is reference counted, it will be unreferenced first.
void av_packet_unref(AVPacket *pkt)
Wipe the packet.
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
int av_packet_from_data(AVPacket *pkt, uint8_t *data, int size)
Initialize a reference-counted packet from av_malloc()ed data.
AVPacket * av_packet_alloc(void)
Allocate an AVPacket and set its fields to default values.
int av_new_packet(AVPacket *pkt, int size)
Allocate the payload of a packet and initialize its fields with default values.
#define AVERROR_PATCHWELCOME
Not yet implemented in FFmpeg, patches welcome.
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
void * av_realloc(void *ptr, size_t size)
Allocate, reallocate, or free a block of memory.
void * av_mallocz(size_t size)
Allocate a memory block with alignment suitable for all memory accesses (including vectors if availab...
int av_reallocp(void *ptr, size_t size)
Allocate, reallocate, or free a block of memory through a pointer to a pointer.
int ff_mov_read_stsd_entries(MOVContext *c, AVIOContext *pb, int entries)
common internal API header
#define RTP_FLAG_MARKER
RTP marker bit was set for this packet.
static int qt_rtp_parse_packet(AVFormatContext *s, PayloadContext *qt, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, uint16_t seq, int flags)
static av_cold int qt_rtp_init(AVFormatContext *ctx, int st_index, PayloadContext *qt)
#define RTP_QT_HANDLER(m, n, s, t)
static void qt_rtp_close(PayloadContext *qt)
enum AVMediaType codec_type
General type of the encoded data.
This structure stores compressed data.
int flags
A combination of AV_PKT_FLAG values.
AVCodecParameters * codecpar
Codec parameters associated with this stream.
int index
stream index in AVFormatContext
unsigned int bytes_per_frame
RTP/JPEG specific private data.
uint32_t timestamp
current frame timestamp
#define avpriv_request_sample(...)