79 (
AVRational){ AV_RB32(header[0] + 26), AV_RB32(header[0] + 22) }) != 0;
83 const uint8_t *new_extradata,
size_t size)
86 return "New Theora links must start on a keyframe";
88 return "New Theora links cannot change the frame rate";
103 if (pframe_count >= (INT64_C(1)<<oggstream->
granule_shift)) {
int(* init)(AVBSFContext *ctx)
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
#define AV_LOG_DEBUG
Stuff which is only useful for libav* developers.
static int av_cmp_q(AVRational a, AVRational b)
Compare two rationals.
static const char * theora_new_link_refused(const AVStream *st, const AVPacket *pkt, const uint8_t *new_extradata, size_t size)
static int theora_rate_changed(const AVStream *st, const uint8_t *extradata, size_t size)
Whether Theora headers set a frame rate other than the stream time base, which packets keep across li...
static int theora_init(AVFormatContext *s, AVStream *st)
static int64_t theora_packet_granule(AVStream *st, const AVPacket *pkt)
int ff_ogg_build_xiph_headers(AVFormatContext *s, AVStream *st, int first_header_size, int comment_type, const char *name, int framing_bit)
Build the headers of a codec using the Xiph header layout: identification, comment and setup packets ...
const OGGMuxerMapping ff_ogg_theora_muxer_mapping
Utilities for rational number calculation.
static const uint8_t header[24]
This structure stores compressed data.
Rational number (pair of numerator and denominator).
AVRational time_base
This is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented.
Codec mapping of the muxer: the parts of the Ogg encapsulation that depend on the codec.
unsigned granule_shift
Granule layout, set by the mapping.
void * priv_data
state of the mapping
int64_t granule_delta_mask
int64_t granule_key_mask
bits all clear on keyframes, 0 when no granule marks one
int vrev
bitstream revision
int avpriv_split_xiph_headers(const uint8_t *extradata, int extradata_size, int first_header_size, const uint8_t *header_start[3], int header_len[3])
Split a single extradata buffer into the three headers that most Xiph codecs use.