33 {
AV_CODEC_ID_AC3, { 0x2C, 0x80, 0x6D, 0xE0, 0x46, 0xDB, 0xCF, 0x11, 0xB4, 0xD1, 0x00, 0x80, 0x5F, 0x6C, 0xBB, 0xEA } },
34 {
AV_CODEC_ID_ATRAC3P, { 0xBF, 0xAA, 0x23, 0xE9, 0x58, 0xCB, 0x71, 0x44, 0xA1, 0x19, 0xFF, 0xFA, 0x01, 0xE4, 0xCE, 0x62 } },
35 {
AV_CODEC_ID_EAC3, { 0xAF, 0x87, 0xFB, 0xA7, 0x02, 0x2D, 0xFB, 0x42, 0xA4, 0xD4, 0x05, 0xCD, 0x93, 0x84, 0x3B, 0xDD } },
36 {
AV_CODEC_ID_MP2, { 0x2B, 0x80, 0x6D, 0xE0, 0x46, 0xDB, 0xCF, 0x11, 0xB4, 0xD1, 0x00, 0x80, 0x5F, 0x6C, 0xBB, 0xEA } },
68 if (!memcmp(subformat + 4,
106 cbSize =
FFMIN(size, cbSize);
107 if (cbSize >= 22 &&
id == 0xfffe) {
181 int64_t start, end, cur;
197 if (chunk_size > end ||
198 end - chunk_size < cur ||
199 chunk_size == UINT_MAX) {
204 chunk_size += (chunk_size & 1);
219 "out of memory, unable to read INFO tag\n");
225 if (
avio_read(pb, value, chunk_size) != chunk_size) {
228 "premature end of file while reading INFO tag\n");
232 value[chunk_size] = 0;
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.
static av_always_inline int ff_get_guid(AVIOContext *s, ff_asf_guid *g)
#define AV_LOG_WARNING
Something somehow does not look correct.
enum AVCodecID ff_wav_codec_get_id(unsigned int tag, int bps)
int block_align
number of bytes per packet if constant and known or 0 Used by some WAV based audio codecs...
#define FF_MEDIASUBTYPE_BASE_GUID
uint8_t * extradata
some codecs need / can use extradata like Huffman tables.
static void parse_waveformatex(AVIOContext *pb, AVCodecContext *c)
#define AVERROR_EOF
End of file.
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
int bits_per_coded_sample
bits per sample/pixel from the demuxer (needed for huffyuv).
int avio_read(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
AVCodecID
Identify the syntax and semantics of the bitstream.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
AVDictionary * metadata
Metadata that applies to the whole file.
void av_free(void *ptr)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc(). ...
unsigned int avio_rl32(AVIOContext *s)
enum AVCodecID ff_codec_guid_get_id(const AVCodecGuid *guids, ff_asf_guid guid)
void av_log(void *avcl, int level, const char *fmt,...)
const AVCodecTag ff_codec_wav_tags[]
uint64_t channel_layout
Audio channel layout.
AVCodecContext * codec
Codec context associated with this stream.
#define FF_INPUT_BUFFER_PADDING_SIZE
Required number of additionally allocated bytes at the end of the input bitstream for decoding...
int bit_rate
the average bitrate
#define AV_DICT_DONT_STRDUP_VAL
Take ownership of a value that's been allocated with av_malloc() and chilren.
int width
picture width / height.
static av_always_inline int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
internal header for RIFF based (de)muxers do NOT include this in end user applications ...
int ff_get_bmp_header(AVIOContext *pb, AVStream *st)
Read BITMAPINFOHEADER structure and set AVStream codec width, height and bits_per_encoded_sample fiel...
Libavcodec external API header.
enum AVMediaType codec_type
int sample_rate
samples per second
AVIOContext * pb
I/O context.
main external API structure.
unsigned int codec_tag
fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A').
int av_dict_set(AVDictionary **pm, const char *key, const char *value, int flags)
Set the given entry in *pm, overwriting an existing entry.
int ff_get_wav_header(AVIOContext *pb, AVCodecContext *codec, int size)
unsigned int avio_rl16(AVIOContext *s)
const AVCodecGuid ff_codec_wav_guids[]
int eof_reached
true if eof reached
int channels
number of audio channels
int ff_read_riff_info(AVFormatContext *s, int64_t size)
static av_always_inline int ff_guidcmp(const void *g1, const void *g2)
void * av_mallocz(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...