]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/dvenc: dv100_weight_shift never used
authorPeter Ross <pross@xvid.org>
Tue, 5 Jan 2021 02:54:22 +0000 (13:54 +1100)
committerPeter Ross <pross@xvid.org>
Sat, 23 Jan 2021 22:35:12 +0000 (09:35 +1100)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/dvenc.c

index 0dc290642ebc76a232237b1aa3ff7f4e73195b79..233e2b68c7fed201419c3cc6f560faf8640472fc 100644 (file)
@@ -318,9 +318,8 @@ static const int dv100_qstep_inv[16] = {
         65536,  65536,  32768,  21845,  16384,  13107,  10923,  9362,  8192,  4096,  3641,  3277,  2979,  2731,  2341,  1260,
 };
 
-/* DV100 weights are pre-zigzagged, inverted and multiplied by 2^(dv100_weight_shift)
+/* DV100 weights are pre-zigzagged, inverted and multiplied by 2^16
    (in DV100 the AC components are divided by the spec weights) */
-static const int dv100_weight_shift = 16;
 static const int dv_weight_1080[2][64] = {
     { 8192, 65536, 65536, 61681, 61681, 61681, 58254, 58254,
       58254, 58254, 58254, 58254, 55188, 58254, 58254, 55188,