49 if (!(bytestream2_peek_byte(&p) & 1))
52 if (bytestream2_peek_byte(&p) == 1) {
55 if (bytestream2_peek_byte(&p) ==
'v'){
59 tag = bytestream2_get_le32(&p);
64 }
else if (bytestream2_peek_byte(&p) ==
't') {
75 cid = strtol(acid,
NULL, 16);
82 size = bytestream2_get_le32(&p);
84 time_unit = bytestream2_get_le64(&p);
85 spu = bytestream2_get_le64(&p);
86 if (!time_unit || !spu) {
115 }
else if (bytestream2_peek_byte(&p) == 3) {
151 }
else if(t == 0x05589f81){
176 lb = ((*p & 2) << 1) | ((*p >> 6) & 3);
187 .
magic =
"\001video",
191 .granule_is_start = 1,
196 .
magic =
"\001audio",
200 .granule_is_start = 1,
209 .granule_is_start = 1,
214 .
magic =
"\001Direct Show Samples embedded in Ogg",
218 .granule_is_start = 1,
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
const struct ogg_codec ff_ogm_old_codec
Copyright (C) 2005 Michael Ahlberg, Måns Rullgård.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
static av_always_inline void bytestream2_init(GetByteContext *g, const uint8_t *buf, int buf_size)
static int ogm_header(AVFormatContext *s, int idx)
Copyright (C) 2005 Michael Ahlberg, Måns Rullgård.
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_RL16
static int ogm_dshow_header(AVFormatContext *s, int idx)
#define av_assert0(cond)
assert() equivalent, that is always enabled.
const struct ogg_codec ff_ogm_text_codec
enum AVStreamParseType need_parsing
AVStream ** streams
A list of all streams in the file.
int64_t bit_rate
The average bitrate of the encoded data (in bits per second).
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
static av_always_inline void bytestream2_skip(GetByteContext *g, unsigned int size)
int ff_vorbis_stream_comment(AVFormatContext *as, AVStream *st, const uint8_t *buf, int size)
static av_always_inline unsigned int bytestream2_get_buffer(GetByteContext *g, uint8_t *dst, unsigned int size)
enum AVMediaType codec_type
General type of the encoded data.
static av_always_inline unsigned int bytestream2_get_bytes_left(GetByteContext *g)
simple assert() macros that are a bit more flexible than ISO C assert().
const AVCodecTag ff_codec_wav_tags[]
int extradata_size
Size of the extradata content in bytes.
const AVCodecTag ff_codec_bmp_tags[]
internal header for RIFF based (de)muxers do NOT include this in end user applications ...
struct ogg_stream * streams
const struct ogg_codec ff_ogm_video_codec
static int ogm_packet(AVFormatContext *s, int idx)
int sample_rate
Audio only.
#define AV_INPUT_BUFFER_PADDING_SIZE
Required number of additionally allocated bytes at the end of the input bitstream for decoding...
void * priv_data
Format private data.
uint8_t * extradata
Extra binary data needed for initializing the decoder, codec-dependent.
AVCodecParameters * codecpar
uint32_t codec_tag
Additional information about the codec (corresponds to the AVI FOURCC).
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_RL32
const struct ogg_codec ff_ogm_audio_codec