Go to the documentation of this file.
34 const uint8_t *buf, *last_buf = p->
buf, *end = p->
buf + p->
buf_size;
38 for (buf = p->
buf; buf + 8 <= end; buf++) {
41 if (last_buf +
size == buf) {
42 valid += 1 + nsubframes / 8;
47 }
else if (buf - last_buf ==
size) {
91 #if CONFIG_MLP_DEMUXER
100 .read_probe = mlp_probe,
111 #if CONFIG_TRUEHD_DEMUXER
120 .read_probe = thd_probe,
int buf_size
Size of buf except extra allocated bytes.
if it could not because there are no more frames
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.
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