Go to the documentation of this file.
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 int invcnt = !((
granule >> 30) & 3);
90 uint32_t dist = (
granule >> 3) & 0x07ffffff;
103 struct ogg *
ogg =
s->priv_data;
111 uint8_t *last_pkt = p;
116 next_pkt = last_pkt += os->
psize;
117 for (; seg < os->
nsegs; seg++) {
120 last_pkt = next_pkt + os->
segments[seg];
127 s->streams[idx]->start_time = os->
lastpts;
128 if (
s->streams[idx]->duration &&
s->streams[idx]->duration !=
AV_NOPTS_VALUE)
129 s->streams[idx]->duration -=
s->streams[idx]->start_time;
#define AV_LOG_WARNING
Something somehow does not look correct.
enum AVMediaType codec_type
General type of the encoded data.
const struct ogg_codec ff_vp8_codec
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
static int vp8_header(AVFormatContext *s, int idx)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
static uint64_t vp8_gptopts(AVFormatContext *s, int idx, uint64_t granule, int64_t *dts)
enum AVStreamParseType need_parsing
AVCodecParameters * codecpar
Codec parameters associated with this stream.
Rational number (pair of numerator and denominator).
struct ogg_stream * streams
#define AV_NOPTS_VALUE
Undefined timestamp value.
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
AVRational sample_aspect_ratio
sample aspect ratio (0 if unknown)
int ff_vorbis_stream_comment(AVFormatContext *as, AVStream *st, const uint8_t *buf, int size)
Parse Vorbis comments and add metadata to an AVStream.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
Copyright (C) 2005 Michael Ahlberg, Måns Rullgård.
#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
static int vp8_packet(AVFormatContext *s, int idx)
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