+long unsigned aac_set_chunk_tv(mp4AudioSpecificConfig *mp4ASC)
+{
+ float tmp = mp4ASC->sbr_present_flag == 1? 2047 : 1023,
+ ms = 1000.0 * num_chunks * tmp / mp4ASC->samplingFrequency;
+ struct timeval total;
+
+ ms2tv(ms, &total);
+ tv_divide(num_chunks, &total, &af->chunk_tv);
+ PARA_INFO_LOG("%luHz, %fs (%zd x %lums)\n",
+ mp4ASC->samplingFrequency, ms / 1000,
+ num_chunks, tv2ms(&af->chunk_tv));
+ return ms / 1000;