From: Andre Noll Date: Mon, 15 Aug 2011 18:16:38 +0000 (+0200) Subject: aac_afh: Don't compute the number of milliseconds twice. X-Git-Tag: v0.4.9~18^2~1 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=7f05bc6406efa807cf416b2e10af5dd472912b3d;p=paraslash.git 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 ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- 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;