49 int config_packet, start_packet, end_packet;
54 config_packet = buf[0] & 0x40;
55 start_packet = buf[0] & 0x20;
56 end_packet = buf[0] & 0x10;
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
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.
int index
stream index in AVFormatContext
int avio_open_dyn_buf(AVIOContext **s)
Open a write only memory stream.
uint8_t * extradata
some codecs need / can use extradata like Huffman tables.
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
uint32_t timestamp
current frame timestamp
AVCodecContext * codec
Codec context associated with this stream.
void ffio_free_dyn_buf(AVIOContext **s)
Free a dynamic buffer.
static void svq3_close_context(PayloadContext *sv)
RTPDynamicProtocolHandler ff_svq3_dynamic_handler
int ff_rtp_finalize_packet(AVPacket *pkt, AVIOContext **dyn_buf, int stream_idx)
Close the dynamic buffer and make a packet from it.
This structure stores compressed data.