]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - ogg_afh_common.c
Kill afhi->header_offset.
[paraslash.git] / ogg_afh_common.c
index 54e92956c641eb8cc8d88ce2a2f9c8920b32a6d6..1deb5cdae194b1bf5b026ffd719d2f316fcba086 100644 (file)
@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright (C) 2004-2010 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2004-2011 Andre Noll <maan@systemlinux.org>
  *
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
  *
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
@@ -163,7 +163,7 @@ int ogg_get_file_info(char *map, size_t numbytes, struct afh_info *afhi,
        afhi->chunk_table[1] = afhi->header_len;
        oss.returned = afhi->header_len;
        oss.fill = numbytes;
        afhi->chunk_table[1] = afhi->header_len;
        oss.returned = afhi->header_len;
        oss.fill = numbytes;
-       for (i = 0, j = 1; ogg_sync_pageseek(&oss, &op) > 0; i++) {
+       for (j = 1; ogg_sync_pageseek(&oss, &op) > 0; /* nothing */) {
                int granule = ogg_page_granulepos(&op);
 
                while (granule > j * frames_per_chunk) {
                int granule = ogg_page_granulepos(&op);
 
                while (granule > j * frames_per_chunk) {