sum += aac_read_int32(inbuf + skip);
afi->chunk_table[i] = sum;
skip += 4;
- if (i < 10 || i + 10 > afi->chunks_total)
- PARA_DEBUG_LOG("offset #%d: %zu\n", i, afi->chunk_table[i]);
+// if (i < 10 || i + 10 > afi->chunks_total)
+// PARA_DEBUG_LOG("offset #%d: %zu\n", i, afi->chunk_table[i]);
}
return 1;
}
chunk_table_size * sizeof(size_t));
}
afi->chunk_table[afi->chunks_total] = ftell(file);
- if (afi->chunks_total < 10 || !(afi->chunks_total % 1000))
- PARA_INFO_LOG("chunk #%lu: %zd\n", afi->chunks_total,
- afi->chunk_table[afi->chunks_total]);
+// if (afi->chunks_total < 10 || !(afi->chunks_total % 1000))
+// PARA_INFO_LOG("chunk #%lu: %zd\n", afi->chunks_total,
+// afi->chunk_table[afi->chunks_total]);
afi->chunks_total++;
if (afi->chunks_total == 1) {
freq_avg = freq;
max_chunk_len = PARA_MAX(max_chunk_len, diff);
min = (i == 1)? diff : PARA_MIN(min, diff);
afi->chunk_table[i] = pos;
- if (i < 11 || !((i - 1) % 1000)|| i > num - 11)
- PARA_DEBUG_LOG("chunk #%d: %g secs, pos: %zd, "
- "size: %zd\n", i - 1,
- i * chunk_time, pos, pos - old_pos);
+// if (i < 11 || !((i - 1) % 1000)|| i > num - 11)
+// PARA_DEBUG_LOG("chunk #%d: %g secs, pos: %zd, "
+// "size: %zd\n", i - 1,
+// i * chunk_time, pos, pos - old_pos);
old_pos = pos;
}
num_chunks = i - 1;
mmd->afi.seconds_total = 0;
free(mmd->afi.chunk_table);
mmd->afi.chunk_table = NULL;
- PARA_ERROR_LOG("freeing header %p\n", mmd->afi.header);
free(mmd->afi.header);
mmd->afi.header = NULL;
tmp = make_message("%s:\n%s:\n%s:\n", status_item_list[SI_AUDIO_INFO1],