32 int version_major, version_minor;
33 int64_t start_num, start_den;
43 if (!strncmp(buf,
"fishead", 8)) {
48 version_minor =
AV_RL16(buf+10);
50 if (version_major != 3) {
52 version_major, version_minor);
66 av_reduce(&start_time, &base_den, start_num, start_den, INT_MAX);
71 }
else if (!strncmp(buf,
"fisbone", 8)) {
76 start_granule =
AV_RL64(buf+36);
79 "Multiple fisbone for the same stream", 0);
Copyright (C) 2005 Michael Ahlberg, Måns Rullgård.
#define OGG_NOGRANULE_VALUE
static int skeleton_header(AVFormatContext *s, int idx)
Opaque data information usually continuous.
const struct ogg_codec ff_skeleton_codec
static int64_t start_time
void av_log(void *avcl, int level, const char *fmt,...)
AVCodecContext * codec
Codec context associated with this stream.
int av_reduce(int *dst_num, int *dst_den, int64_t num, int64_t den, int64_t max)
Reduce a fraction.
struct ogg_stream * streams
static int ogg_find_stream(struct ogg *ogg, int serial)
enum AVMediaType codec_type
void av_log_missing_feature(void *avc, const char *feature, int want_sample)
Log a generic warning message about a missing feature.
int64_t start_time
Decoding: pts of the first frame of the stream, in stream time base.
void * priv_data
Format private data.