Changeset 2824
- Timestamp:
- 2007-05-31 05:12:12 (2 years ago)
- Files:
-
- liboggz/trunk/src/liboggz/oggz_auto.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
liboggz/trunk/src/liboggz/oggz_auto.c
r2823 r2824 343 343 (*(int *)(op->packet + 64)) * (*(int *)(op->packet + 56)); 344 344 info->headers_encountered = 1; 345 printf("first header, returning 0\n");346 345 return 0; 347 346 } … … 349 348 if (info->headers_encountered < 2) { 350 349 info->headers_encountered += 1; 351 printf("second header\n");352 350 } else { 353 351 info->encountered_first_data_packet = 1; 354 printf("encountered data packet\n");355 352 } 356 353 357 354 if (now > -1) { 358 printf("returning valid gp %lld\n", now);359 355 return now; 360 356 } … … 362 358 if (info->encountered_first_data_packet) { 363 359 if (stream->last_granulepos > 0) { 364 printf("returning calced gp %lld\n",365 stream->last_granulepos + info->packet_size);366 360 return stream->last_granulepos + info->packet_size; 367 361 } 368 362 369 printf("returning unknown gp\n");370 363 return -1; 371 364 } 372 365 373 printf("fallback return of 0\n");374 366 return 0; 375 367