Changeset 3278

Show
Ignore:
Timestamp:
2007-11-25 19:55:29 (1 year ago)
Author:
shans
Message:

Some minor adjustments to work around Yet More problems with ogg
granulepos values.

Files:

Legend:

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

    r3249 r3278  
    688688  info = (auto_calc_vorbis_info_t *)stream->calculate_data; 
    689689 
     690  return -1; 
     691 
    690692  {  
    691693    /* 
  • liboggz/trunk/src/liboggz/oggz_read.c

    r3249 r3278  
    420420            reader->current_granulepos =  
    421421              oggz_auto_calculate_granulepos (content, granulepos, stream, op);  
     422            /* make sure that we accept any "real" gaps in the granulepos 
     423             */ 
     424            if (granulepos != -1 && reader->current_granulepos < granulepos) { 
     425              reader->current_granulepos = granulepos; 
     426            } 
    422427          } else { 
    423428            reader->current_granulepos = granulepos;