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;
103 .p.extensions =
"mlp",
105 .read_probe = mlp_probe,
113#if CONFIG_TRUEHD_DEMUXER
123 .p.extensions =
"thd",
125 .read_probe = thd_probe,
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.
int ffio_ensure_seekback(AVIOContext *s, int64_t buf_size)
Ensures that the requested seekback buffer size will be available.
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 NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
static int mlp_samplerate(int in)
This structure contains the data a format has to probe a file.