Go to the documentation of this file.
29 #define OGG_FLAC_METADATA_TYPE_STREAMINFO 0x7F
44 mdt = bytestream2_get_byte(&gb) & 0x7F;
52 if (bytestream2_get_byteu(&gb) != 1)
uint8_t * extradata
Extra binary data needed for initializing the decoder, codec-dependent.
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel sample they are references to shared objects When the negotiation mechanism computes the intersection of the formats supported at each end of a all references to both lists are replaced with a reference to the intersection And when a single format is eventually chosen for a link amongst the remaining all references to the list are updated That means that if a filter requires that its input and output have the same format amongst a supported all it has to do is use a reference to the same list of formats query_formats can leave some formats unset and return AVERROR(EAGAIN) to cause the negotiation mechanism toagain later. That can be used by filters with complex requirements to use the format negotiated on one link to set the formats supported on another. Frame references ownership and permissions
enum AVMediaType codec_type
General type of the encoded data.
int sample_rate
samples per second
const struct ogg_codec ff_flac_codec
static av_always_inline void bytestream2_skipu(GetByteContext *g, unsigned int size)
static int old_flac_header(AVFormatContext *s, int idx)
AVCodecParserContext * av_parser_init(int codec_id)
static int flac_header(AVFormatContext *s, int idx)
AVCodecContext * avcodec_alloc_context3(const AVCodec *codec)
Allocate an AVCodecContext and set its fields to default values.
#define OGG_FLAC_METADATA_TYPE_STREAMINFO
enum AVStreamParseType need_parsing
AVCodecParameters * codecpar
Codec parameters associated with this stream.
int avcodec_parameters_to_context(AVCodecContext *codec, const struct AVCodecParameters *par)
Fill the codec context based on the values from the supplied codec parameters.
void avcodec_free_context(AVCodecContext **avctx)
Free the codec context and everything associated with it and write NULL to the provided pointer.
#define FLAC_STREAMINFO_SIZE
struct ogg_stream * streams
static av_always_inline int bytestream2_get_bytes_left(GetByteContext *g)
#define AV_NOPTS_VALUE
Undefined timestamp value.
#define PARSER_FLAG_COMPLETE_FRAMES
@ FLAC_METADATA_TYPE_VORBIS_COMMENT
main external API structure.
int ff_vorbis_stream_comment(AVFormatContext *as, AVStream *st, const uint8_t *buf, int size)
Parse Vorbis comments and add metadata to an AVStream.
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.
static av_always_inline unsigned int bytestream2_get_bufferu(GetByteContext *g, uint8_t *dst, unsigned int size)
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
const struct ogg_codec ff_old_flac_codec
Copyright (C) 2005 Michael Ahlberg, Måns Rullgård.
static av_always_inline void bytestream2_init(GetByteContext *g, const uint8_t *buf, int buf_size)
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_WB64 unsigned int_TMPL AV_WB32 unsigned int_TMPL AV_RB24
void av_parser_close(AVCodecParserContext *s)