28 #define OGG_FLAC_METADATA_TYPE_STREAMINFO 0x7F
#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)
AVCodecContext * codec
Codec context associated with this stream.
uint8_t * extradata
some codecs need / can use extradata like Huffman tables.
static int flac_header(AVFormatContext *s, int idx)
enum AVStreamParseType need_parsing
bitstream reader API header.
int ff_vorbis_comment(AVFormatContext *ms, AVDictionary **m, const uint8_t *buf, int size)
FLAC (Free Lossless Audio Codec) decoder/demuxer common functions.
void * priv_data
Format private data.
#define PARSER_FLAG_COMPLETE_FRAMES
void avpriv_flac_parse_streaminfo(AVCodecContext *avctx, struct FLACStreaminfo *s, const uint8_t *buffer)
Parse the Streaminfo metadata block.
static int old_flac_header(AVFormatContext *s, int idx)
struct ogg_codec ff_old_flac_codec
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
AVCodecParserContext * av_parser_init(int codec_id)
#define FLAC_STREAMINFO_SIZE
enum AVMediaType codec_type
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.
struct ogg_codec ff_flac_codec
#define AV_NOPTS_VALUE
Undefined timestamp value.