Mercurial > libavcodec.hg
diff qdm2.c @ 3333:6bfe6c09d837 libavcodec
Fixed a possible bug, checked against the assembly.
No sample that used the code has been found though.
author | banan |
---|---|
date | Fri, 02 Jun 2006 07:50:12 +0000 |
parents | 888e539459f4 |
children | c8c591fe26f8 |
line wrap: on
line diff
--- a/qdm2.c Thu Jun 01 23:22:07 2006 +0000 +++ b/qdm2.c Fri Jun 02 07:50:12 2006 +0000 @@ -538,7 +538,7 @@ 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;