Go to the documentation of this file.
26 #define RTP_AC3_PAYLOAD_HEADER_SIZE 2
79 data->nr_frames = nr_frames;
85 data->timestamp = *timestamp;
89 if (!
data->fragment) {
91 "Received packet without a start fragment; dropping.\n");
94 if (nr_frames !=
data->nr_frames ||
95 data->timestamp != *timestamp) {
108 if (
data->last_frame !=
data->nr_frames) {
111 data->nr_frames -
data->last_frame);
118 "Error occurred when getting fragment buffer.\n");
#define AV_LOG_WARNING
Something somehow does not look correct.
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel sample they are references to shared objects When the negotiation mechanism computes the intersection of the formats supported at each end of a all references to both lists are replaced with a reference to the intersection And when a single format is eventually chosen for a link amongst the remaining all references to the list are updated That means that if a filter requires that its input and output have the same format amongst a supported all it has to do is use a reference to the same list of formats query_formats can leave some formats unset and return AVERROR(EAGAIN) to cause the negotiation mechanism toagain later. That can be used by filters with complex requirements to use the format negotiated on one link to set the formats supported on another. Frame references ownership and permissions
#define RTP_FLAG_MARKER
RTP marker bit was set for this packet.
int ff_rtp_finalize_packet(AVPacket *pkt, AVIOContext **dyn_buf, int stream_idx)
Close the dynamic buffer and make a packet from it.
uint32_t timestamp
current frame timestamp
static void ac3_close_context(PayloadContext *data)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
int avio_open_dyn_buf(AVIOContext **s)
Open a write only memory stream.
AVIOContext * fragment
buffer for split payloads
int av_new_packet(AVPacket *pkt, int size)
Allocate the payload of a packet and initialize its fields with default values.
#define RTP_AC3_PAYLOAD_HEADER_SIZE
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)
const RTPDynamicProtocolHandler ff_ac3_dynamic_handler
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
void ffio_free_dyn_buf(AVIOContext **s)
Free a dynamic buffer.
int index
stream index in AVFormatContext
This structure stores compressed data.
#define flags(name, subs,...)
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
RTP/JPEG specific private data.