36 #define MAX_AAC_HBR_FRAME_SIZE 8191 82 #define ATTR_NAME_TYPE_INT 0 83 #define ATTR_NAME_TYPE_STR 1 96 {INT32_MIN, INT32_MAX} },
103 {
NULL, -1, -1, {0} },
125 int au_headers_length, au_header_size,
i;
133 au_headers_length =
AV_RB16(buf);
151 if (au_header_size <= 0 || (au_headers_length % au_header_size != 0))
261 if (len < data->au_headers[0].
size) {
287 const char *attr,
const char *
value)
292 if (!strcmp(attr,
"config")) {
301 for (i = 0; attr_names[
i].
str; ++
i) {
304 char *end_ptr =
NULL;
305 long long int val = strtoll(value, &end_ptr, 10);
306 if (end_ptr == value || end_ptr[0] !=
'\0') {
308 "The %s field value is not a valid number: %s\n",
312 if (val < attr_names[i].range.min ||
315 "fmtp field %s should be in range [%d,%d] (provided value: %lld)",
316 attr, attr_names[i].range.min, attr_names[i].
range.
max, val);
320 *(
int *)((
char *)data+
326 *(
char **)((
char *)data+
const RTPDynamicProtocolHandler ff_mp4v_es_dynamic_handler
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define RTP_MAX_PACKET_LENGTH
ptrdiff_t const GLvoid * data
RTP/JPEG specific private data.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
int index
stream index in AVFormatContext
static void close_context(PayloadContext *data)
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_WB64 unsigned int_TMPL AV_WB32 unsigned int_TMPL AV_WB24 unsigned int_TMPL AV_RB16
This struct describes the properties of an encoded stream.
Macro definitions for various function/variable attributes.
struct AttrNameMap::Range range
GLsizei GLboolean const GLfloat * value
static int parse_fmtp(AVFormatContext *s, AVStream *stream, PayloadContext *data, const char *attr, const char *value)
AVStream ** streams
A list of all streams in the file.
bitstream reader API header.
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.
int av_strcasecmp(const char *a, const char *b)
Locale-independent case-insensitive compare.
static int parse_fmtp_config(AVCodecParameters *par, const char *value)
static int aac_parse_packet(AVFormatContext *ctx, PayloadContext *data, AVStream *st, AVPacket *pkt, uint32_t *timestamp, const uint8_t *buf, int len, uint16_t seq, int flags)
#define ATTR_NAME_TYPE_INT
char * av_strdup(const char *s)
Duplicate a string.
#define MAX_AAC_HBR_FRAME_SIZE
struct PayloadContext::AUHeaders * au_headers
static int init_get_bits(GetBitContext *s, const uint8_t *buffer, int bit_size)
Initialize GetBitContext.
uint8_t * buf
the temporary storage buffer
#define ATTR_NAME_TYPE_STR
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))
static int rtp_parse_mp4_au(PayloadContext *data, const uint8_t *buf, int len)
static unsigned int get_bits_long(GetBitContext *s, int n)
Read 0-32 bits.
static int parse_sdp_line(AVFormatContext *s, int st_index, PayloadContext *data, const char *line)
const RTPDynamicProtocolHandler ff_mpeg4_generic_dynamic_handler
#define flags(name, subs,...)
static const AttrNameMap attr_names[]
int av_strstart(const char *str, const char *pfx, const char **ptr)
Return non-zero if pfx is a prefix of str.
Range for integer values.
uint8_t * extradata
Extra binary data needed for initializing the decoder, codec-dependent.
AVCodecParameters * codecpar
Codec parameters associated with this stream.
int au_headers_length_bytes
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 double val(void *priv, double ch)
This structure stores compressed data.
mode
Use these values in ebur128_init (or'ed).