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.
static unsigned int get_bits(GetBitContext *s, int n)
Read 1-25 bits.
static void skip_bits_long(GetBitContext *s, int n)
Skips the specified number of bits.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
static int flac_header(AVFormatContext *s, int idx)
enum AVStreamParseType need_parsing
AVStream ** streams
A list of all streams in the file.
int avcodec_parameters_to_context(AVCodecContext *codec, const AVCodecParameters *par)
Fill the codec context based on the values from the supplied codec parameters.
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)
enum AVMediaType codec_type
General type of the encoded data.
const struct ogg_codec ff_flac_codec
int extradata_size
Size of the extradata content in bytes.
static int old_flac_header(AVFormatContext *s, int idx)
AVCodecContext * avcodec_alloc_context3(const AVCodec *codec)
Allocate an AVCodecContext and set its fields to default values.
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)
void avcodec_free_context(AVCodecContext **avctx)
Free the codec context and everything associated with it and write NULL to the provided pointer...
int sample_rate
samples per second
main external API structure.
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.
#define PARSER_FLAG_COMPLETE_FRAMES
void * priv_data
Format private data.
uint8_t * extradata
Extra binary data needed for initializing the decoder, codec-dependent.
AVCodecParameters * codecpar
Codec parameters associated with this stream.
const struct ogg_codec ff_old_flac_codec
#define AV_NOPTS_VALUE
Undefined timestamp value.