26#include "config_components.h"
49 13, 14, 16, 18, 20, 21, 27, 32, 6, 1, 1, 1, 1, 1, 1, 1
52 18, 24, 33, 37, 41, 47, 51, 59, 61, 6, 1, 1, 1, 1, 1, 1
73 uint8_t
header[19] = { 0 };
74 int read, back = 0, ret;
140#if CONFIG_AMRNB_DEMUXER
143 int mode,
i = 0, valid = 0, invalid = 0;
144 const uint8_t *
b =
p->buf;
148 if (
mode < 9 && (
b[
i] & 0x4) == 0x4 && (
b[
i] & 0x03) == 0) {
165 if (valid > 100 && valid >> 4 > invalid)
197#if CONFIG_AMRWB_DEMUXER
200 int mode,
i = 0, valid = 0, invalid = 0;
201 const uint8_t *
b =
p->buf;
205 if (
mode < 10 && (
b[
i] & 0x4) == 0x4 && (
b[
i] & 0x03) == 0) {
222 if (valid > 100 && valid >> 4 > invalid)
273 .p.mime_type =
"audio/amr",
274 .p.extensions =
"amr",
280 .write_header = amr_write_header,
static attribute_nonstring const uint8_t AMR_header[6]
static attribute_nonstring const uint8_t AMRWBMC_header[15]
static attribute_nonstring const uint8_t AMRMC_header[12]
static attribute_nonstring const uint8_t AMRWB_header[9]
static const uint8_t amrnb_packed_size[16]
static const uint8_t amrwb_packed_size[16]
#define attribute_nonstring
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
int avio_read(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
int ffio_ensure_seekback(AVIOContext *s, int64_t buf_size)
Ensures that the requested seekback buffer size will be available.
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
static uint32_t BS_FUNC read(BSCTX *bc, unsigned int n)
Return n bits from the buffer, n has to be in the 0-32 range.
#define i(width, name, range_min, range_max)
static int read_probe(const AVProbeData *p)
Public libavutil channel layout APIs header.
static int read_header(FFV1Context *f, RangeCoder *c)
AVStream * avformat_new_stream(AVFormatContext *s, const struct AVCodec *c)
Add a new stream to a media file.
#define AV_CHANNEL_LAYOUT_MONO
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
#define MKTAG(a, b, c, d)
#define FF_OFMT_FLAG_MAX_ONE_OF_EACH
If this flag is set, it indicates that for each codec type whose corresponding default codec (i....
IDirect3DDxgiInterfaceAccess _COM_Outptr_ void ** p
static const uint8_t header[24]
FFRawDemuxerContext rawctx
An AVChannelLayout holds information about the channel layout of audio data.
int nb_channels
Number of channels in this layout.
This struct describes the properties of an encoded stream.
AVChannelLayout ch_layout
The channel layout and number of channels.
enum AVMediaType codec_type
General type of the encoded data.
uint32_t codec_tag
Additional information about the codec (corresponds to the AVI FOURCC).
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
int sample_rate
The number of audio samples per second.
This structure contains the data a format has to probe a file.
AVCodecParameters * codecpar
Codec parameters associated with this stream.
enum AVStreamParseType need_parsing