From: Andre Noll Date: Thu, 22 Dec 2016 14:50:54 +0000 (+0100) Subject: aac_afh.c: Remove duplicate check for samplingFrequency. X-Git-Tag: v0.6.0~7^2~21 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=d222e3053d6d7f15b9203dd86a021737f50e63f0 aac_afh.c: Remove duplicate check for samplingFrequency. aac_set_chunk_tv() is called after we checked that the sampling frequency is non-zero. No need to check it again. --- diff --git a/aac_afh.c b/aac_afh.c index 1c7fd706..12ce82df 100644 --- a/aac_afh.c +++ b/aac_afh.c @@ -183,8 +183,6 @@ static int aac_set_chunk_tv(struct afh_info *afhi, 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);