Changeset 3773
- Timestamp:
- 2008-11-07 20:08:04 (2 months ago)
- Files:
-
- liboggz/trunk/include/oggz/oggz_constants.h (modified) (1 diff)
- liboggz/trunk/src/liboggz/oggz_read.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
liboggz/trunk/include/oggz/oggz_constants.h
r3772 r3773 171 171 OGGZ_ERR_IO_AGAIN = -16, 172 172 173 /** Hole (sequence number gap) detected in input data */ 174 OGGZ_ERR_HOLE_IN_DATA = -17, 175 173 176 /** The requested serialno does not exist in this OGGZ */ 174 177 OGGZ_ERR_BAD_SERIALNO = -20, liboggz/trunk/src/liboggz/oggz_read.c
r3718 r3773 375 375 result = ogg_stream_packetout(os, op); 376 376 377 /* 378 * libogg flags "holes in the data" (which are really inconsistencies 379 * in the page sequence number) by returning -1. 380 */ 377 381 if(result == -1) { 378 382 #ifdef DEBUG 379 383 printf ("oggz_read_sync: hole in the data\n"); 380 384 #endif 385 /* We can't tolerate holes in headers, so bail out. */ 386 if (stream->packetno < 3) return OGGZ_ERR_HOLE_IN_DATA; 387 388 /* Holes in content occur in some files and pretty much don't matter, 389 * so we silently swallow the notification and reget the packet. 390 */ 381 391 result = ogg_stream_packetout(os, op); 382 392 if (result == -1) { 393 /* If the result is *still* -1 then something strange is 394 * happening. 395 */ 383 396 #ifdef DEBUG 384 /* 385 * libogg flags "holes in the data" (which are really 386 * inconsistencies in the page sequence number) by returning 387 * -1. This occurs in some files and pretty much doesn't matter, 388 * so we silently swallow the notification and reget the packet. 389 * If the result is *still* -1 then something strange is happening. 390 */ 391 printf ("shouldn't get here"); 392 #endif 393 return -7; 397 printf ("Multiple holes in data!"); 398 #endif 399 return OGGZ_ERR_HOLE_IN_DATA; 394 400 } 395 401 }