28 #define OGG_FLAC_METADATA_TYPE_STREAMINFO 0x7F
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define OGG_FLAC_METADATA_TYPE_STREAMINFO
Copyright (C) 2005 Michael Ahlberg, Måns Rullgård.
ptrdiff_t const GLvoid * data
static unsigned int get_bits(GetBitContext *s, int n)
Read 1-25 bits.
static void skip_bits_long(GetBitContext *s, int n)
static int flac_header(AVFormatContext *s, int idx)
enum AVStreamParseType need_parsing
uint8_t * extradata
some codecs need / can use extradata like Huffman tables.
AVStream ** streams
A list of all streams in the file.
bitstream reader API header.
FLAC (Free Lossless Audio Codec) decoder/demuxer common functions.
int ff_vorbis_stream_comment(AVFormatContext *as, AVStream *st, const uint8_t *buf, int size)
#define PARSER_FLAG_COMPLETE_FRAMES
const struct ogg_codec ff_flac_codec
AVCodecContext * codec
Codec context associated with this stream.
static int old_flac_header(AVFormatContext *s, int idx)
int av_parser_parse2(AVCodecParserContext *s, AVCodecContext *avctx, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int64_t pts, int64_t dts, int64_t pos)
Parse a packet.
void av_parser_close(AVCodecParserContext *s)
struct ogg_stream * streams
#define FLAC_STREAMINFO_SIZE
AVCodecParserContext * av_parser_init(int codec_id)
enum AVMediaType codec_type
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_RB24
int sample_rate
samples per second
static void skip_bits1(GetBitContext *s)
static int init_get_bits(GetBitContext *s, const uint8_t *buffer, int bit_size)
Initialize GetBitContext.
static unsigned int get_bits_long(GetBitContext *s, int n)
Read 0-32 bits.
void * priv_data
Format private data.
const struct ogg_codec ff_old_flac_codec
#define AV_NOPTS_VALUE
Undefined timestamp value.