PARA_DEBUG_LOG("found stsz@%d\n", i);
i += 8;
sample_size = read_u32_be(buf + i);
- PARA_DEBUG_LOG("sample size: %d\n", sample_size);
+ PARA_DEBUG_LOG("sample size: %u\n", sample_size);
i += 4;
sample_count = read_u32_be(buf + i);
i += 4;
- PARA_DEBUG_LOG("sample count: %d\n", sample_count);
+ PARA_DEBUG_LOG("sample count: %u\n", sample_count);
*skip = i;
return sample_count;
}
struct timeval total;
long unsigned ms;
- if (!mp4ASC->samplingFrequency)
- return -E_MP4ASC;
ms = 1000.0 * afhi->chunks_total * tmp / mp4ASC->samplingFrequency;
ms2tv(ms, &total);
tv_divide(afhi->chunks_total, &total, &afhi->chunk_tv);
afhi->chunk_table[0] = ret;
for (i = 1; i<= afhi->chunks_total; i++)
afhi->chunk_table[i] += ret;
+ set_max_chunk_size(afhi);
afhi->channels = channels;
afhi->frequency = rate;
ret = (afhi->chunk_table[afhi->chunks_total] - afhi->chunk_table[0]) * 8; /* bits */