static int aac_get_file_info(FILE *file, char *info_str, long unsigned *frames,
int *seconds)
{
static int aac_get_file_info(FILE *file, char *info_str, long unsigned *frames,
int *seconds)
{
- PARA_INFO_LOG("offset table has %d entries\, entry: %zd\n", num_chunks,
+ PARA_INFO_LOG("offset table has %zu entries, entry: %zu\n", num_chunks,
struct timeval total_tv;
tv_scale(num_chunks, &af->chunk_tv, &total_tv);
*seconds = tv2ms(&total_tv) / 1000;
struct timeval total_tv;
tv_scale(num_chunks, &af->chunk_tv, &total_tv);
*seconds = tv2ms(&total_tv) / 1000;
- PARA_INFO_LOG("%d seconds, %d chunks\n", *seconds, num_chunks);
+ PARA_INFO_LOG("%d seconds, %zu chunks\n", *seconds, num_chunks);
}
static __must_check int para_fread(void *ptr, size_t size, size_t nmemb, FILE *stream)
}
static __must_check int para_fread(void *ptr, size_t size, size_t nmemb, FILE *stream)
- *len = chunk_table[current_chunk - 1] - chunk_table[current_chunk - 2];
- pos = entry + chunk_table[current_chunk - 2];
+ *len = chunk_table[current_chunk] - chunk_table[current_chunk - 1];
+ pos = entry + chunk_table[current_chunk - 1];