]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
aac_afh.c: Remove duplicate check for samplingFrequency.
authorAndre Noll <maan@tuebingen.mpg.de>
Thu, 22 Dec 2016 14:50:54 +0000 (15:50 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Sat, 25 Mar 2017 10:54:36 +0000 (11:54 +0100)
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

index 1c7fd706f0a7c9fe8c9d4d8db43846be18a9304d..12ce82df8c7fa5df9371fdac7437fd85043be2ab 100644 (file)
--- 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);