30 const uint8_t *buf = p->buf;
31 int left = p->buf_size;
40 size = (buf[2] << 8) | buf[3];
42 size = 3 + ((buf[4] << 16) | (buf[5] << 8) | buf[6]);
91 pkt->stream_index = 0;
103 .p.extensions =
"ac4",
static int ac4_probe(const AVProbeData *p)
const FFInputFormat ff_ac4_demuxer
static int ac4_read_packet(AVFormatContext *s, AVPacket *pkt)
static int ac4_read_header(AVFormatContext *s)
simple assert() macros that are a bit more flexible than ISO C assert().
unsigned int avio_rb16(AVIOContext *s)
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.
int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
unsigned int avio_rb24(AVIOContext *s)
static int BS_FUNC left(const BSCTX *bc)
Return the number of the bits left in a buffer.
Public header for CRC hash function implementation.
AVStream * avformat_new_stream(AVFormatContext *s, const struct AVCodec *c)
Add a new stream to a media file.
#define AVERROR_EOF
End of file.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
enum AVMediaType codec_type
General type of the encoded data.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
This structure stores compressed data.
This structure contains the data a format has to probe a file.
AVCodecParameters * codecpar
Codec parameters associated with this stream.