X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=ogg_afh_common.c;h=db82eda3f2d7394e111f4d0cf02d9a5f5fce4a79;hp=cb59d36383a104836bbff4ef59f233f464ae4743;hb=40885aedeb61f4a84d3e0acc7eeef256a6932aaf;hpb=69a7e7aa11d8bf9b05d6431c57276befbc9b35a3 diff --git a/ogg_afh_common.c b/ogg_afh_common.c index cb59d363..db82eda3 100644 --- a/ogg_afh_common.c +++ b/ogg_afh_common.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2004-2011 Andre Noll + * Copyright (C) 2004-2012 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -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;