30 #include "libavutil/intreadwrite.h"
48 int config_packet, start_packet, end_packet;
53 config_packet = buf[0] & 0x40;
54 start_packet = buf[0] & 0x20;
55 end_packet = buf[0] & 0x10;
static int svq3_parse_packet(AVFormatContext *s, PayloadContext *sv, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, uint16_t seq, int flags)
return 0 on packet, <0 on partial packet or error...
RTP/JPEG specific private data.
AVCodecContext * codec
Codec context associated with this stream.
int index
stream index in AVFormatContext
uint8_t * extradata
some codecs need / can use extradata like Huffman tables.
void av_freep(void *ptr)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc() and set the pointer ...
static void svq3_extradata_free(PayloadContext *sv)
uint32_t timestamp
current frame timestamp
void av_free(void *ptr)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc(). ...
int ff_rtp_finalize_packet(AVPacket *pkt, AVIOContext **dyn_buf, int stream_idx)
Close the dynamic buffer and make a packet from it.
#define AVERROR_INVALIDDATA
This structure stores compressed data.
static PayloadContext * svq3_extradata_new(void)
void * av_mallocz(size_t size) av_malloc_attrib 1(1)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...