29#define VP8_HEADER_SIZE 26
39 if (os->
psize < 7 || p[0] != 0x4f)
51 "Unknown OggVP8 version %d.%d\n", p[6], p[7]);
86 int invcnt = !((
granule >> 30) & 3);
91 uint32_t dist = (
granule >> 3) & 0x07ffffff;
104 struct ogg *
ogg =
s->priv_data;
112 uint8_t *last_pkt = p;
117 next_pkt = last_pkt += os->
psize;
118 for (; seg < os->
nsegs; seg++) {
121 last_pkt = next_pkt + os->
segments[seg];
128 s->streams[idx]->start_time = os->
lastpts;
129 if (
s->streams[idx]->duration &&
s->streams[idx]->duration !=
AV_NOPTS_VALUE)
130 s->streams[idx]->duration -=
s->streams[idx]->start_time;
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define AV_LOG_WARNING
Something somehow does not look correct.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#define AV_NOPTS_VALUE
Undefined timestamp value.
const struct ogg_codec ff_vp8_codec
int height
The height of the video frame in pixels.
int width
The width of the video frame in pixels.
enum AVMediaType codec_type
General type of the encoded data.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
Rational number (pair of numerator and denominator).
AVCodecParameters * codecpar
Codec parameters associated with this stream.
AVRational sample_aspect_ratio
sample aspect ratio (0 if unknown)
enum AVStreamParseType need_parsing
Copyright (C) 2005 Michael Ahlberg, Måns Rullgård.
struct ogg_stream * streams