Commit f334b10a authored by shans's avatar shans

One more time, without the printfs



git-svn-id: http://svn.annodex.net/liboggz/trunk@2824 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent fb6edd65
......@@ -342,35 +342,27 @@ auto_calc_speex(ogg_int64_t now, oggz_stream_t *stream, ogg_packet *op) {
info->packet_size =
(*(int *)(op->packet + 64)) * (*(int *)(op->packet + 56));
info->headers_encountered = 1;
printf("first header, returning 0\n");
return 0;
}
if (info->headers_encountered < 2) {
info->headers_encountered += 1;
printf("second header\n");
} else {
info->encountered_first_data_packet = 1;
printf("encountered data packet\n");
}
if (now > -1) {
printf("returning valid gp %lld\n", now);
return now;
}
if (info->encountered_first_data_packet) {
if (stream->last_granulepos > 0) {
printf("returning calced gp %lld\n",
stream->last_granulepos + info->packet_size);
return stream->last_granulepos + info->packet_size;
}
printf("returning unknown gp\n");
return -1;
}
printf("fallback return of 0\n");
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment