57 int start_packet, end_packet, has_au, ret =
AVERROR(EAGAIN);
70 start_packet = *buf & 1;
78 uint32_t ts = *timestamp;
86 ret = end_packet ? 1 : 0;
96 "Received no start marker; dropping frame\n");
104 if (has_au && len > 2) {
108 if (buf + au_len > buf + len) {
133 "with the latest spec drafts.\n");
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.
AV_WL32 AV_WL24 AV_WL16 AV_WB32 AV_WB24 AV_RB16
int avio_close_dyn_buf(AVIOContext *s, uint8_t **pbuffer)
Return the written size and a pointer to the buffer.
#define AV_LOG_WARNING
Something somehow does not look correct.
RTP/H264 specific private data.
int index
stream index in AVFormatContext
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
RTPDynamicProtocolHandler ff_vp8_dynamic_handler
int avio_open_dyn_buf(AVIOContext **s)
Open a write only memory stream.
void av_init_packet(AVPacket *pkt)
Initialize optional fields of a packet with default values.
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(). ...
#define RTP_FLAG_MARKER
RTP marker bit was set for this packet.
void av_log(void *avcl, int level, const char *fmt,...)
int flags
A combination of AV_PKT_FLAG values.
static void vp8_free_context(PayloadContext *vp8)
static int vp8_handle_packet(AVFormatContext *ctx, PayloadContext *vp8, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, int flags)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
static PayloadContext * vp8_new_context(void)
static void prepare_packet(AVPacket *pkt, PayloadContext *vp8, int stream)