Changeset 2565

Show
Ignore:
Timestamp:
2006-12-08 01:17:44 (2 years ago)
Author:
conrad
Message:

add support for reading vorbis and theora comments

Files:

Legend:

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

    r2563 r2565  
    783783  switch (stream->content) { 
    784784    case OGGZ_CONTENT_VORBIS: 
     785      if (op->bytes > 7 && memcmp (op->packet, "\003vorbis", 7) == 0) 
     786        offset = 7; 
    785787      break; 
    786788    case OGGZ_CONTENT_SPEEX: 
    787789      offset = 0; break; 
    788790    case OGGZ_CONTENT_THEORA: 
     791      if (op->bytes > 7 && memcmp (op->packet, "\201theora", 7) == 0) 
     792        offset = 7; 
    789793      break; 
    790794    default: