71 "Too old or unsupported Theora (%x)\n", thp->
version);
84 if (width <= st->codecpar->width && width > st->
codecpar->
width - 16 &&
85 height <= st->codecpar->height && height > st->
codecpar->
height - 16) {
95 if (!(timebase.
num > 0 && timebase.
den > 0)) {
134 *cdp++ = os->
psize >> 8;
135 *cdp++ = os->
psize & 0xff;
148 uint64_t iframe, pframe;
154 pframe = gp & thp->
gpmask;
163 *dts = iframe + pframe;
165 return iframe + pframe;
169 .
magic =
"\200theora",
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
Copyright (C) 2005 Michael Ahlberg, Måns Rullgård.
static unsigned int get_bits(GetBitContext *s, int n)
Read 1-25 bits.
#define AV_LOG_WARNING
Something somehow does not look correct.
static uint64_t theora_gptopts(AVFormatContext *ctx, int idx, uint64_t gp, int64_t *dts)
static void skip_bits_long(GetBitContext *s, int n)
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
AVRational sample_aspect_ratio
sample aspect ratio (0 if unknown)
av_log(ac->avr, AV_LOG_TRACE, "%d samples - audio_convert: %s to %s (%s)\, len, av_get_sample_fmt_name(ac->in_fmt), av_get_sample_fmt_name(ac->out_fmt), use_generic ? ac->func_descr_generic :ac->func_descr)
enum AVStreamParseType need_parsing
AVStream ** streams
A list of all streams in the file.
int av_reallocp(void *ptr, size_t size)
Allocate or reallocate a block of memory.
bitstream reader API header.
#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)
enum AVMediaType codec_type
General type of the encoded data.
int extradata_size
Size of the extradata content in bytes.
struct ogg_stream * streams
Copyright (C) 2005 Matthieu CASTET, Alex Beregszaszi.
static void skip_bits(GetBitContext *s, int n)
rational number numerator/denominator
static int init_get_bits(GetBitContext *s, const uint8_t *buffer, int bit_size)
Initialize GetBitContext.
static unsigned int get_bits_long(GetBitContext *s, int n)
Read 0-32 bits.
static int theora_header(AVFormatContext *s, int idx)
#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.
const struct ogg_codec ff_theora_codec
AVCodecParameters * codecpar
void * av_mallocz(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
#define AV_NOPTS_VALUE
Undefined timestamp value.