From d222e3053d6d7f15b9203dd86a021737f50e63f0 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 22 Dec 2016 15:50:54 +0100 Subject: [PATCH] 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. --- aac_afh.c | 2 -- 1 file changed, 2 deletions(-) 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); -- 2.39.2