47 6000, 8000, 9600, 11025, 12000, 16000, 22050, 24000,
48 32000, 44100, 48000, 64000, 88200, 96000, 192000, -1
83 uint32_t chmask,
flags;
128 "Cannot determine additional parameters\n");
142 "Insufficient channel information\n");
161 chan |= (
avio_r8(pb) & 0xF) << 8;
167 chan |= (
avio_r8(pb) & 0xF) << 8;
173 "Invalid channel info size %d\n",
size);
180 "Invalid DSD block\n");
183 rate_x = 1U << (
avio_r8(pb) & 0x1f);
196 if (rate == -1 || rate * (uint64_t)rate_x >= INT_MAX) {
198 "Cannot determine custom sampling rate\n");
210 wc->
rate = rate * rate_x;
214 "Bits per sample differ, this block: %i, header block: %i\n",
220 "Channels differ, this block: %i, header block: %i\n",
226 "Sampling rate differ, this block: %i, header block: %i\n",
227 rate * rate_x, wc->
rate);
285 uint32_t block_samples;
323 if (block_samples > INT32_MAX)
325 "Too many samples in block: %"PRIu32
"\n", block_samples);
int64_t ff_ape_parse_tag(AVFormatContext *s)
Read and parse an APE tag.
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
#define AVIO_SEEKABLE_NORMAL
Seeking works like for a local file.
int avio_feof(AVIOContext *s)
Similar to feof() but also returns nonzero on read errors.
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
unsigned int avio_rl16(AVIOContext *s)
int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
int avio_read(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
unsigned int avio_rl32(AVIOContext *s)
unsigned int avio_rl24(AVIOContext *s)
int avio_r8(AVIOContext *s)
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
#define flags(name, subs,...)
audio channel layout utility functions
#define MKTAG(a, b, c, d)
static int read_header(FFV1Context *f)
#define AV_CH_LAYOUT_MONO
#define AV_CH_LAYOUT_STEREO
int av_grow_packet(AVPacket *pkt, int grow_by)
Increase packet size, correctly zeroing padding.
int av_new_packet(AVPacket *pkt, int size)
Allocate the payload of a packet and initialize its fields with default values.
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
#define AV_DICT_IGNORE_SUFFIX
Return first entry in a dictionary whose first part corresponds to the search key,...
AVDictionaryEntry * av_dict_get(const AVDictionary *m, const char *key, const AVDictionaryEntry *prev, int flags)
Get a dictionary entry with matching key.
#define AVERROR_PATCHWELCOME
Not yet implemented in FFmpeg, patches welcome.
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define AVERROR_EOF
End of file.
#define AV_LOG_WARNING
Something somehow does not look correct.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
void ff_id3v1_read(AVFormatContext *s)
Read an ID3v1 tag.
common internal API header
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
void avpriv_report_missing_feature(void *avc, const char *msg,...) av_printf_format(2
Log a generic warning message about a missing feature.
uint64_t channel_layout
Audio only.
int bits_per_coded_sample
The number of bits per sample in the codedwords.
enum AVMediaType codec_type
General type of the encoded data.
uint8_t * extradata
Extra binary data needed for initializing the decoder, codec-dependent.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
int sample_rate
Audio only.
void * priv_data
Format private data.
int seekable
A combination of AVIO_SEEKABLE_ flags or 0 when the stream is not seekable.
This structure stores compressed data.
int64_t duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...
int64_t pos
byte position in stream, -1 if unknown
This structure contains the data a format has to probe a file.
int buf_size
Size of buf except extra allocated bytes.
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
AVCodecParameters * codecpar
Codec parameters associated with this stream.
int64_t duration
Decoding: duration of the stream, in stream time base.
int64_t start_time
Decoding: pts of the first frame of the stream in presentation order, in stream time base.
uint8_t block_header[WV_HEADER_SIZE]
int ff_wv_parse_header(WvHeader *wv, const uint8_t *data)
Parse a WavPack block header.
#define WV_FLAG_FINAL_BLOCK
static int wv_read_packet(AVFormatContext *s, AVPacket *pkt)
static const int wv_rates[16]
static int wv_read_header(AVFormatContext *s)
AVInputFormat ff_wv_demuxer
static int wv_read_block_header(AVFormatContext *ctx, AVIOContext *pb)
static int wv_probe(const AVProbeData *p)