From 7f05bc6406efa807cf416b2e10af5dd472912b3d Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 15 Aug 2011 20:16:38 +0200 Subject: [PATCH 1/1] aac_afh: Don't compute the number of milliseconds twice. aac_afh.c:194:16: warning: Value stored to 'ms' during its initialization is never read long unsigned ms = 1000.0 * afhi->chunks_total * tmp ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- aac_afh.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aac_afh.c b/aac_afh.c index a53a757f..7acb011d 100644 --- a/aac_afh.c +++ b/aac_afh.c @@ -191,8 +191,7 @@ static int aac_set_chunk_tv(struct afh_info *afhi, { float tmp = mp4ASC->sbr_present_flag == 1? 2047 : 1023; struct timeval total; - long unsigned ms = 1000.0 * afhi->chunks_total * tmp - / mp4ASC->samplingFrequency; + long unsigned ms; if (!mp4ASC->samplingFrequency) return -E_MP4ASC; -- 2.39.2