Go to the documentation of this file.
44 const uint8_t *buf,
int len, uint16_t seq,
50 if (!
data->dyn_buf ||
data->timestamp != *timestamp) {
54 data->timestamp = *timestamp;
80 if (
data->pos + cur_len >
data->len) {
98 int audio_mux_version, same_time_framing, num_programs, num_layers;
108 audio_mux_version =
get_bits(&gb, 1);
109 same_time_framing =
get_bits(&gb, 1);
113 if (audio_mux_version != 0 || same_time_framing != 1 || num_programs != 0 ||
116 audio_mux_version, same_time_framing,
117 num_programs, num_layers);
135 const char *attr,
const char *
value)
139 if (!strcmp(attr,
"config")) {
143 }
else if (!strcmp(attr,
"cpresent")) {
144 int cpresent = atoi(
value);
147 "RTP MP4A-LATM with in-band configuration");
uint8_t * extradata
Extra binary data needed for initializing the decoder, codec-dependent.
static int get_bits_left(GetBitContext *gb)
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
static int parse_fmtp(AVFormatContext *s, AVStream *stream, PayloadContext *data, const char *attr, const char *value)
int ff_parse_fmtp(AVFormatContext *s, AVStream *stream, PayloadContext *data, const char *p, int(*parse_fmtp)(AVFormatContext *s, AVStream *stream, PayloadContext *data, const char *attr, const char *value))
#define RTP_FLAG_MARKER
RTP marker bit was set for this packet.
static int init_get_bits(GetBitContext *s, const uint8_t *buffer, int bit_size)
Initialize GetBitContext.
uint32_t timestamp
current frame timestamp
static void skip_bits(GetBitContext *s, int n)
static unsigned int get_bits(GetBitContext *s, int n)
Read 1-25 bits.
static int parse_fmtp_config(AVStream *st, const char *value)
static double val(void *priv, double ch)
static int latm_parse_sdp_line(AVFormatContext *s, int st_index, PayloadContext *data, const char *line)
int avio_close_dyn_buf(AVIOContext *s, uint8_t **pbuffer)
Return the written size and a pointer to the buffer.
static void latm_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.
int av_new_packet(AVPacket *pkt, int size)
Allocate the payload of a packet and initialize its fields with default values.
const RTPDynamicProtocolHandler ff_mp4a_latm_dynamic_handler
AVCodecParameters * codecpar
Codec parameters associated with this stream.
#define AVERROR_PATCHWELCOME
Not yet implemented in FFmpeg, patches welcome.
int extradata_size
Size of the extradata content in bytes.
void avpriv_report_missing_feature(void *avc, const char *msg,...) av_printf_format(2
Log a generic warning message about a missing feature.
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
int av_strstart(const char *str, const char *pfx, const char **ptr)
Return non-zero if pfx is a prefix of str.
#define i(width, name, range_min, range_max)
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf default value
void * av_mallocz(size_t size)
Allocate a memory block with alignment suitable for all memory accesses (including vectors if availab...
void ffio_free_dyn_buf(AVIOContext **s)
Free a dynamic buffer.
#define AV_INPUT_BUFFER_PADDING_SIZE
uint8_t * buf
the temporary storage buffer
int index
stream index in AVFormatContext
static int parse_packet(AVFormatContext *s, AVPacket *pkt, int stream_index, int flush)
Parse a packet, add all split parts to parse_queue.
#define avpriv_request_sample(...)
static int latm_parse_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.
#define flags(name, subs,...)
RTP/JPEG specific private data.