Go to the documentation of this file.
48 if (!(bytestream2_peek_byte(&p) & 1))
51 if (bytestream2_peek_byte(&p) == 1) {
54 if (bytestream2_peek_byte(&p) ==
'v'){
58 tag = bytestream2_get_le32(&p);
63 }
else if (bytestream2_peek_byte(&p) ==
't') {
81 size = bytestream2_get_le32(&p);
83 time_unit = bytestream2_get_le64(&p);
84 spu = bytestream2_get_le64(&p);
85 if (!time_unit || !spu) {
120 }
else if (bytestream2_peek_byte(&p) == 3) {
132 struct ogg *
ogg =
s->priv_data;
156 }
else if(t == 0x05589f81){
173 struct ogg *
ogg =
s->priv_data;
181 lb = ((*p & 2) << 1) | ((*p >> 6) & 3);
182 if (os->
psize < lb + 1)
189 os->
pduration += (uint64_t)p[lb+1] << (lb*8);
195 .
magic =
"\001video",
199 .granule_is_start = 1,
204 .
magic =
"\001audio",
208 .granule_is_start = 1,
217 .granule_is_start = 1,
222 .
magic =
"\001Direct Show Samples embedded in Ogg",
226 .granule_is_start = 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.
const struct ogg_codec ff_ogm_old_codec
AVStreamInternal * internal
An opaque field for libavformat internal usage.
const AVCodecTag ff_codec_wav_tags[]
uint32_t codec_tag
Additional information about the codec (corresponds to the AVI FOURCC).
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
static av_always_inline unsigned int bytestream2_get_bytes_left(GetByteContext *g)
static av_always_inline void bytestream2_skip(GetByteContext *g, unsigned int size)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
enum AVStreamParseType need_parsing
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_RL16
AVCodecParameters * codecpar
Codec parameters associated with this stream.
const struct ogg_codec ff_ogm_text_codec
static av_always_inline unsigned int bytestream2_get_buffer(GetByteContext *g, uint8_t *dst, unsigned int size)
struct ogg_stream * streams
int sample_rate
Audio only.
int extradata_size
Size of the extradata content in bytes.
static int ogm_header(AVFormatContext *s, int idx)
Copyright (C) 2005 Michael Ahlberg, Måns Rullgård.
const struct ogg_codec ff_ogm_video_codec
static int ogm_dshow_header(AVFormatContext *s, int idx)
@ AV_CODEC_ID_TEXT
raw UTF-8 text
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_RL32
const AVCodecTag ff_codec_bmp_tags[]
const struct ogg_codec ff_ogm_audio_codec
static int ogm_packet(AVFormatContext *s, int idx)
int ff_vorbis_stream_comment(AVFormatContext *as, AVStream *st, const uint8_t *buf, int size)
int need_context_update
Whether the internal avctx needs to be updated from codecpar (after a late change to codecpar)
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
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)
int64_t bit_rate
The average bitrate of the encoded data (in bits per second).
#define AVERROR_INVALIDDATA
Invalid data found when processing input.