32 int version_major, version_minor;
33 int64_t start_num, start_den;
46 if (!strncmp(buf,
"fishead", 8)) {
51 version_minor =
AV_RL16(buf+10);
53 if (version_major != 3 && version_major != 4) {
55 version_major, version_minor);
67 if (start_den > 0 && start_num > 0) {
69 av_reduce(&start_time, &base_den, start_num, start_den, INT_MAX);
74 }
else if (!strncmp(buf,
"fisbone", 8)) {
79 start_granule =
AV_RL64(buf+36);
Copyright (C) 2005 Michael Ahlberg, Måns Rullgård.
#define AV_LOG_WARNING
Something somehow does not look correct.
#define OGG_NOGRANULE_VALUE
AVCodecContext * codec
Codec context associated with this stream.
static int skeleton_header(AVFormatContext *s, int idx)
void av_log(void *avcl, int level, const char *fmt,...) av_printf_format(3
Send the specified message to the log if the level is less than or equal to the current av_log_level...
static int64_t start_time
void * priv_data
Format private data.
int av_reduce(int *dst_num, int *dst_den, int64_t num, int64_t den, int64_t max)
Reduce a fraction.
struct ogg_codec ff_skeleton_codec
Opaque data information usually continuous.
struct ogg_stream * streams
static int ogg_find_stream(struct ogg *ogg, int serial)
enum AVMediaType codec_type
int64_t start_time
Decoding: pts of the first frame of the stream in presentation order, in stream time base...