[Ffmpeg-cvslog] r5448 - trunk/libavcodec/qdm2.c

banan subversion
Fri Jun 2 09:50:12 CEST 2006


Author: banan
Date: Fri Jun  2 09:50:12 2006
New Revision: 5448

Modified:
   trunk/libavcodec/qdm2.c

Log:
Fixed a possible bug, checked against the assembly.
No sample that used the code has been found though.


Modified: trunk/libavcodec/qdm2.c
==============================================================================
--- trunk/libavcodec/qdm2.c	(original)
+++ trunk/libavcodec/qdm2.c	Fri Jun  2 09:50:12 2006
@@ -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;




More information about the ffmpeg-cvslog mailing list