oggdemux: Parse Skeleton stream major/minor version

This commit is contained in:
Sebastian Dröge 2010-06-08 11:31:35 +02:00
parent 7eea3c25c9
commit aa8daa862e
2 changed files with 10 additions and 3 deletions

View file

@ -830,7 +830,12 @@ setup_fishead_mapper (GstOggStream * pad, ogg_packet * packet)
data = packet->packet;
data += 8 + 2 + 2; /* header + major/minor version */
data += 8; /* header */
pad->skeleton_major = GST_READ_UINT16_LE (data);
data += 2;
pad->skeleton_minor = GST_READ_UINT16_LE (data);
data += 2;
prestime_n = (gint64) GST_READ_UINT64_LE (data);
data += 8;
@ -891,8 +896,9 @@ setup_fishead_mapper (GstOggStream * pad, ogg_packet * packet)
pad->total_time = -1;
}
GST_INFO ("skeleton fishead parsed (basetime: %" GST_TIME_FORMAT
", prestime: %" GST_TIME_FORMAT ")", GST_TIME_ARGS (pad->basetime),
GST_INFO ("skeleton fishead %u.%u parsed (basetime: %" GST_TIME_FORMAT
", prestime: %" GST_TIME_FORMAT ")", pad->skeleton_major,
pad->skeleton_minor, GST_TIME_ARGS (pad->basetime),
GST_TIME_ARGS (pad->prestime));
pad->is_skeleton = TRUE;

View file

@ -85,6 +85,7 @@ struct _GstOggStream
gboolean is_ogm;
gboolean is_ogm_text;
/* fishead stuff */
guint16 skeleton_major, skeleton_minor;
gint64 prestime;
gint64 basetime;
/* index */