X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=ogg_afh_common.c;h=564b0becd6404400b0457c1a14835e39833fa11a;hp=cb59d36383a104836bbff4ef59f233f464ae4743;hb=08be831b7b7e3e55d862eb988a604ccbde603403;hpb=1c8226eae0e976d940366cd10bd708d8e4d0bca5 diff --git a/ogg_afh_common.c b/ogg_afh_common.c index cb59d363..564b0bec 100644 --- a/ogg_afh_common.c +++ b/ogg_afh_common.c @@ -170,7 +170,7 @@ int ogg_get_file_info(char *map, size_t numbytes, struct afh_info *afhi, for (j = 1; ogg_sync_pageseek(&oss, &op) > 0; /* nothing */) { int granule = ogg_page_granulepos(&op); - while (granule > j * frames_per_chunk) { + while (granule >= (j + 1) * frames_per_chunk) { j++; if (j >= ct_size) { ct_size *= 2;