Browse code

Remove redundant code, found by CSA

Originally committed as revision 18661 to svn://svn.ffmpeg.org/ffmpeg/trunk

Benjamin Larsson authored on 2009/04/22 22:52:33
Showing 1 changed files
... ...
@@ -707,8 +707,7 @@ static void fill_coding_method_array (sb_int8_array tone_level_idx, sb_int8_arra
707 707
                 for (sb = 0; sb < 30; sb++)
708 708
                     for (j = 0; j < 64; j++)
709 709
                         acc += tone_level_idx_temp[ch][sb][j];
710
-            if (acc)
711
-                tmp = c * 256 / (acc & 0xffff);
710
+
712 711
             multres = 0x66666667 * (acc * 10);
713 712
             esp_40 = (multres >> 32) / 8 + ((multres & 0xffffffff) >> 31);
714 713
             for (ch = 0;  ch < nb_channels; ch++)
... ...
@@ -1835,7 +1834,6 @@ static av_cold int qdm2_decode_init(AVCodecContext *avctx)
1835 1835
     extradata += 4;
1836 1836
 
1837 1837
     s->checksum_size = AV_RB32(extradata);
1838
-    extradata += 4;
1839 1838
 
1840 1839
     s->fft_order = av_log2(s->fft_size) + 1;
1841 1840
     s->fft_frame_size = 2 * s->fft_size; // complex has two floats