31#define OGG_FLAC_METADATA_TYPE_STREAMINFO 0x7F
32#define OGG_FLAC_MAGIC "\177FLAC"
33#define OGG_FLAC_MAGIC_SIZE sizeof(OGG_FLAC_MAGIC)-1
34#define OGG_FLAC_STREAMINFO_OFFSET (OGG_FLAC_MAGIC_SIZE + 1 + 1 + 2 + 4 + 4)
49 mdt = bytestream2_get_byte(&gb) & 0x7F;
57 if (bytestream2_get_byteu(&gb) != 1)
127 struct ogg *
ogg =
s->priv_data;
Libavcodec external API header.
#define PARSER_FLAG_COMPLETE_FRAMES
static av_always_inline void bytestream2_skipu(GetByteContext *g, unsigned int size)
static av_always_inline unsigned int bytestream2_get_bufferu(GetByteContext *g, uint8_t *dst, unsigned int size)
static av_always_inline int bytestream2_get_bytes_left(const GetByteContext *g)
static av_always_inline void bytestream2_init(GetByteContext *g, const uint8_t *buf, int buf_size)
int avcodec_parameters_to_context(AVCodecContext *codec, const AVCodecParameters *par)
FLAC (Free Lossless Audio Codec) common stuff.
@ FLAC_METADATA_TYPE_VORBIS_COMMENT
#define FLAC_STREAMINFO_SIZE
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(enum AVCodecID 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.
void * av_memdup(const void *p, size_t size)
Duplicate a buffer with av_malloc().
#define AV_NOPTS_VALUE
Undefined timestamp value.
int ff_vorbis_update_metadata(AVFormatContext *s, AVStream *st, const uint8_t *buf, int size)
Parse Vorbis comments, add metadata to an AVStream.
const struct ogg_codec ff_flac_codec
const struct ogg_codec ff_old_flac_codec
Memory handling functions.
main external API structure.
int sample_rate
samples per second
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.
size_t new_extradata_size
struct ogg_stream * streams