]> git.sesse.net Git - ffmpeg/commitdiff
qdm2: remove unneeded checks for channel count
authorJustin Ruggles <justin.ruggles@gmail.com>
Mon, 22 Oct 2012 22:54:29 +0000 (18:54 -0400)
committerJustin Ruggles <justin.ruggles@gmail.com>
Thu, 1 Nov 2012 15:29:18 +0000 (11:29 -0400)
libavcodec/qdm2.c

index 8e93886f1c7651e28ada1cea72da061c9ba698de..a094e6c188333d0dab5375f229e966f05dfd393d 100644 (file)
@@ -544,10 +544,6 @@ static void fill_tone_level_array (QDM2Context *q, int flag)
     int i, sb, ch, sb_used;
     int tmp, tab;
 
-    // This should never happen
-    if (q->nb_channels <= 0)
-        return;
-
     for (ch = 0; ch < q->nb_channels; ch++)
         for (sb = 0; sb < 30; sb++)
             for (i = 0; i < 8; i++) {
@@ -643,10 +639,6 @@ static void fill_coding_method_array (sb_int8_array tone_level_idx, sb_int8_arra
     int add1, add2, add3, add4;
     int64_t multres;
 
-    // This should never happen
-    if (nb_channels <= 0)
-        return;
-
     if (!superblocktype_2_3) {
         /* This case is untested, no samples available */
         SAMPLES_NEEDED