Mercurial > libavcodec.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
3332:987b30ac0497 | 3333:6bfe6c09d837 |
---|---|
536 for (j = 0; j < 64; ) { | 536 for (j = 0; j < 64; ) { |
537 if((coding_method[ch][sb][j] - 8) > 22) { | 537 if((coding_method[ch][sb][j] - 8) > 22) { |
538 run = 1; | 538 run = 1; |
539 case_val = 8; | 539 case_val = 8; |
540 } else { | 540 } else { |
541 switch (switchtable[coding_method[ch][sb][j]]) { | 541 switch (switchtable[coding_method[ch][sb][j]-8]) { |
542 case 0: run = 10; case_val = 10; break; | 542 case 0: run = 10; case_val = 10; break; |
543 case 1: run = 1; case_val = 16; break; | 543 case 1: run = 1; case_val = 16; break; |
544 case 2: run = 5; case_val = 24; break; | 544 case 2: run = 5; case_val = 24; break; |
545 case 3: run = 3; case_val = 30; break; | 545 case 3: run = 3; case_val = 30; break; |
546 case 4: run = 1; case_val = 30; break; | 546 case 4: run = 1; case_val = 30; break; |