]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Fixed a possible bug, checked against the assembly.
authorbanan <banan@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Fri, 2 Jun 2006 07:50:12 +0000 (07:50 +0000)
committerbanan <banan@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Fri, 2 Jun 2006 07:50:12 +0000 (07:50 +0000)
No sample that used the code has been found though.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5448 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/qdm2.c

index e9356edbad4afe5b5d3fb6faa61754fd7b9d6921..81d5483866e6cc0ab4d2af48593f118da06b8cff 100644 (file)
@@ -538,7 +538,7 @@ static void fix_coding_method_array (int sb, int channels, sb_int8_array coding_
                 run = 1;
                 case_val = 8;
             } else {
-                switch (switchtable[coding_method[ch][sb][j]]) {
+                switch (switchtable[coding_method[ch][sb][j]-8]) {
                     case 0: run = 10; case_val = 10; break;
                     case 1: run = 1; case_val = 16; break;
                     case 2: run = 5; case_val = 24; break;