Commit 3a6e978c authored by conrad's avatar conrad

added auto handler for Annodex BOS pages (so that *every* track in an

annodex file has a metric ...)


git-svn-id: http://svn.annodex.net/liboggz/trunk@392 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent b2d47599
......@@ -164,6 +164,22 @@ auto_theora (OGGZ * oggz, ogg_packet * op, long serialno, void * user_data)
return 1;
}
static int
auto_annodex (OGGZ * oggz, ogg_packet * op, long serialno, void * user_data)
{
unsigned char * header = op->packet;
if (op->bytes < 8) return 0;
if (strncmp ((char *)header, "Annodex", 8)) return 0;
if (!op->b_o_s) return 0;
/* Yeah ... set it up with a "linear" metric with numerator 0 :) */
oggz_set_metric_linear (oggz, serialno, 0, 1);
return 1;
}
static int
auto_anxdata (OGGZ * oggz, ogg_packet * op, long serialno, void * user_data)
{
......@@ -193,6 +209,7 @@ static OggzReadPacket auto_readers[] = {
auto_speex,
auto_vorbis,
auto_theora,
auto_annodex,
auto_anxdata,
NULL
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment