aac_set_chunk_tv() is called after we checked that the sampling
frequency is non-zero. No need to check it again.
struct timeval total;
long unsigned ms;
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);
ms = 1000.0 * afhi->chunks_total * tmp / mp4ASC->samplingFrequency;
ms2tv(ms, &total);
tv_divide(afhi->chunks_total, &total, &afhi->chunk_tv);