44 const uint8_t *buf,
int len,
int flags)
46 int config_packet, start_packet, end_packet;
51 config_packet = buf[0] & 0x40;
52 start_packet = buf[0] & 0x20;
53 end_packet = buf[0] & 0x10;
void * av_mallocz(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
int avio_close_dyn_buf(AVIOContext *s, uint8_t **pbuffer)
Return the written size and a pointer to the buffer.
RTP/H264 specific private data.
int index
stream index in AVFormatContext
int avio_open_dyn_buf(AVIOContext **s)
Open a write only memory stream.
void av_freep(void *arg)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc() and set the pointer ...
void av_init_packet(AVPacket *pkt)
Initialize optional fields of a packet with default values.
static void svq3_extradata_free(PayloadContext *sv)
uint8_t * extradata
some codecs need / can use extradata like Huffman tables.
void av_destruct_packet(AVPacket *pkt)
Default packet destructor.
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
void(* destruct)(struct AVPacket *)
uint32_t timestamp
timestamp of next-to-be-returned packet
void av_free(void *ptr)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc(). ...
AVCodecContext * codec
codec context
static int svq3_parse_packet(AVFormatContext *s, PayloadContext *sv, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, int flags)
return 0 on packet, <0 on partial packet or error...
void * av_malloc(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
#define FF_INPUT_BUFFER_PADDING_SIZE
Required number of additionally allocated bytes at the end of the input bitstream for decoding...
RTPDynamicProtocolHandler ff_svq3_dynamic_handler
static PayloadContext * svq3_extradata_new(void)