29#define OGG_FLAC_METADATA_TYPE_STREAMINFO 0x7F
30#define OGG_FLAC_MAGIC "\177FLAC"
31#define OGG_FLAC_MAGIC_SIZE sizeof(OGG_FLAC_MAGIC)-1
46 mdt = bytestream2_get_byte(&gb) & 0x7F;
54 if (bytestream2_get_byteu(&gb) != 1)
114 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.
#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
int ff_vorbis_stream_comment(AVFormatContext *as, AVStream *st, const uint8_t *buf, int size)
Parse Vorbis comments and add metadata to an AVStream.
const struct ogg_codec ff_old_flac_codec
#define OGG_FLAC_MAGIC_SIZE
static int old_flac_header(AVFormatContext *s, int idx)
static int flac_header(AVFormatContext *s, int idx)
#define OGG_FLAC_METADATA_TYPE_STREAMINFO
static int flac_packet(AVFormatContext *s, int idx)
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.
struct ogg_stream * streams