28 #define VP8_HEADER_SIZE 26
38 if (os->
psize < 7 || p[0] != 0x4f)
50 "Unknown OggVP8 version %d.%d\n", p[6], p[7]);
85 uint64_t
pts = (granule >> 32);
86 uint32_t dist = (granule >> 3) & 0x07ffffff;
111 duration = (last_pkt[0] >> 4) & 1;
112 next_pkt = last_pkt += os->
psize;
113 for (; seg < os->
nsegs; seg++) {
115 duration += (last_pkt[0] >> 4) & 1;
116 last_pkt = next_pkt + os->
segments[seg];
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
Copyright (C) 2005 Michael Ahlberg, Måns Rullgård.
#define AV_LOG_WARNING
Something somehow does not look correct.
AVRational sample_aspect_ratio
sample aspect ratio (0 if unknown)
static uint64_t vp8_gptopts(AVFormatContext *s, int idx, uint64_t granule, int64_t *dts)
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_WB24 unsigned int_TMPL AV_RB16
enum AVStreamParseType need_parsing
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_RB32
AVStream ** streams
A list of all streams in the file.
static int vp8_packet(AVFormatContext *s, int idx)
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
int ff_vorbis_stream_comment(AVFormatContext *as, AVStream *st, const uint8_t *buf, int size)
AVCodecContext * codec
Codec context associated with this stream.
int width
picture width / height.
struct ogg_stream * streams
enum AVMediaType codec_type
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
rational number numerator/denominator
static int64_t pts
Global timestamp for the audio frames.
int64_t duration
Decoding: duration of the stream, in stream time base.
int64_t start_time
Decoding: pts of the first frame of the stream in presentation order, in stream time base...
const struct ogg_codec ff_vp8_codec
void * priv_data
Format private data.
static int vp8_header(AVFormatContext *s, int idx)
#define AV_NOPTS_VALUE
Undefined timestamp value.