26 #define RTP_AC3_PAYLOAD_HEADER_SIZE 2 54 frame_type = buf[0] & 0x3;
71 memcpy(pkt->
data, buf, len);
91 "Received packet without a start fragment; dropping.\n");
118 "Error occurred when getting fragment buffer.\n");
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define AV_LOG_WARNING
Something somehow does not look correct.
RTP/JPEG specific private data.
int index
stream index in AVFormatContext
int avio_open_dyn_buf(AVIOContext **s)
Open a write only memory stream.
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
int av_new_packet(AVPacket *pkt, int size)
Allocate the payload of a packet and initialize its fields with default values.
uint32_t timestamp
current frame timestamp
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#define RTP_FLAG_MARKER
RTP marker bit was set for this packet.
void ffio_free_dyn_buf(AVIOContext **s)
Free a dynamic buffer.
AVIOContext * fragment
buffer for split payloads
static void ac3_close_context(PayloadContext *data)
#define RTP_AC3_PAYLOAD_HEADER_SIZE
uint8_t * buf
the temporary storage buffer
int ff_rtp_finalize_packet(AVPacket *pkt, AVIOContext **dyn_buf, int stream_idx)
Close the dynamic buffer and make a packet from it.
static int ac3_handle_packet(AVFormatContext *ctx, PayloadContext *data, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, uint16_t seq, int flags)
This structure stores compressed data.
const RTPDynamicProtocolHandler ff_ac3_dynamic_handler