Changeset 392

Show
Ignore:
Timestamp:
2004-02-06 08:26:00 (5 years ago)
Author:
conrad
Message:

added auto handler for Annodex BOS pages (so that *every* track in an
annodex file has a metric ...)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • liboggz/trunk/src/liboggz/oggz_auto.c

    r353 r392  
    166166 
    167167static int 
     168auto_annodex (OGGZ * oggz, ogg_packet * op, long serialno, void * user_data) 
     169{ 
     170  unsigned char * header = op->packet; 
     171 
     172  if (op->bytes < 8) return 0; 
     173 
     174  if (strncmp ((char *)header, "Annodex", 8)) return 0; 
     175  if (!op->b_o_s) return 0; 
     176 
     177  /* Yeah ... set it up with a "linear" metric with numerator 0 :) */ 
     178  oggz_set_metric_linear (oggz, serialno, 0, 1); 
     179 
     180  return 1; 
     181} 
     182 
     183static int 
    168184auto_anxdata (OGGZ * oggz, ogg_packet * op, long serialno, void * user_data) 
    169185{ 
     
    194210  auto_vorbis, 
    195211  auto_theora, 
     212  auto_annodex, 
    196213  auto_anxdata, 
    197214  NULL