36 #define MAX_AAC_HBR_FRAME_SIZE 8191 76 #define ATTR_NAME_TYPE_INT 0 77 #define ATTR_NAME_TYPE_STR 1 115 int au_headers_length, au_header_size, i;
123 au_headers_length =
AV_RB16(buf);
141 if (au_header_size <= 0 || (au_headers_length % au_header_size != 0))
250 if (len < data->au_headers[0].
size) {
276 const char *attr,
const char *value)
281 if (!strcmp(attr,
"config")) {
290 for (i = 0; attr_names[i].
str; ++i) {
293 int val = atoi(value);
296 "The %s field size is invalid (%d).",
300 *(
int *)((
char *)data+
301 attr_names[i].
offset) = val;
306 *(
char **)((
char *)data+
307 attr_names[i].
offset) = val;
void * av_malloc(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.
#define RTP_MAX_PACKET_LENGTH
RTP/JPEG specific private data.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
int index
stream index in AVFormatContext
av_log(ac->avr, AV_LOG_TRACE, "%d samples - audio_convert: %s to %s (%s)\, len, av_get_sample_fmt_name(ac->in_fmt), av_get_sample_fmt_name(ac->out_fmt), use_generic ? ac->func_descr_generic :ac->func_descr)
static void close_context(PayloadContext *data)
static int parse_fmtp_config(AVCodecParameters *par, char *value)
This struct describes the properties of an encoded stream.
RTPDynamicProtocolHandler ff_mpeg4_generic_dynamic_handler
Macro definitions for various function/variable attributes.
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.
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.
int extradata_size
Size of the extradata content in bytes.
int av_strcasecmp(const char *a, const char *b)
RTPDynamicProtocolHandler ff_mp4v_es_dynamic_handler
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 the string s.
#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)
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.
#define AV_INPUT_BUFFER_PADDING_SIZE
Required number of additionally allocated bytes at the end of the input bitstream for decoding...
uint8_t * extradata
Extra binary data needed for initializing the decoder, codec-dependent.
AVCodecParameters * codecpar
int au_headers_length_bytes
This structure stores compressed data.
void * av_mallocz(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...