Go to the documentation of this file.
24 #include "config_components.h"
37 const uint8_t *buf, *last_buf = p->
buf, *end = p->
buf + p->
buf_size;
38 int valid = 0,
size = 0;
41 for (buf = p->
buf; buf + 8 <= end; buf++) {
43 if (last_buf +
size == buf) {
44 valid += 1 + nsubframes / 8;
49 }
else if (buf - last_buf ==
size) {
69 int read, sample_rate = 0;
93 #if CONFIG_MLP_DEMUXER
103 .p.extensions =
"mlp",
105 .read_probe = mlp_probe,
113 #if CONFIG_TRUEHD_DEMUXER
123 .p.extensions =
"thd",
125 .read_probe = thd_probe,
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.
This structure contains the data a format has to probe a file.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
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_RB32
int ffio_ensure_seekback(AVIOContext *s, int64_t buf_size)
Ensures that the requested seekback buffer size will be available.
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
static int mlp_samplerate(int in)
the frame and frame reference mechanism is intended to as much as expensive copies of that data while still allowing the filters to produce correct results The data is stored in buffers represented by AVFrame structures Several references can point to the same frame buffer
int avio_read(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
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.
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