28 #define OGG_FLAC_METADATA_TYPE_STREAMINFO 0x7F
#define PARSER_FLAG_COMPLETE_FRAMES
FLAC (Free Lossless Audio Codec) decoder/demuxer common functions.
@ FLAC_METADATA_TYPE_VORBIS_COMMENT
#define FLAC_STREAMINFO_SIZE
bitstream reader API header.
static unsigned int get_bits_long(GetBitContext *s, int n)
Read 0-32 bits.
static void skip_bits_long(GetBitContext *s, int n)
Skips the specified number of bits.
static void skip_bits(GetBitContext *s, int n)
static void skip_bits1(GetBitContext *s)
static unsigned int get_bits(GetBitContext *s, int n)
Read 1-25 bits.
static int init_get_bits(GetBitContext *s, const uint8_t *buffer, int bit_size)
Initialize GetBitContext.
int avcodec_parameters_to_context(AVCodecContext *codec, const AVCodecParameters *par)
Fill the codec context based on the values from the supplied codec parameters.
AVCodecContext * avcodec_alloc_context3(const AVCodec *codec)
Allocate an AVCodecContext and set its fields to default values.
void avcodec_free_context(AVCodecContext **avctx)
Free the codec context and everything associated with it and write NULL to the provided pointer.
AVCodecParserContext * av_parser_init(int codec_id)
void av_parser_close(AVCodecParserContext *s)
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.
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define AV_NOPTS_VALUE
Undefined timestamp value.
common internal API header
int ff_vorbis_stream_comment(AVFormatContext *as, AVStream *st, const uint8_t *buf, int size)
const struct ogg_codec ff_flac_codec
static int old_flac_header(AVFormatContext *s, int idx)
const struct ogg_codec ff_old_flac_codec
static int flac_header(AVFormatContext *s, int idx)
#define OGG_FLAC_METADATA_TYPE_STREAMINFO
main external API structure.
int sample_rate
samples per second
int extradata_size
Size of the extradata content in bytes.
enum AVMediaType codec_type
General type of the encoded data.
uint8_t * extradata
Extra binary data needed for initializing the decoder, codec-dependent.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
AVCodecParameters * codecpar
Codec parameters associated with this stream.
enum AVStreamParseType need_parsing
Copyright (C) 2005 Michael Ahlberg, Måns Rullgård.
struct ogg_stream * streams