Skip to content

Commit

Permalink
AUDIO: Fix "if" formatting in QDM2 code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Schickel committed Aug 9, 2012
1 parent b4196e4 commit 84426c6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions audio/decoders/qdm2.cpp
Expand Up @@ -689,7 +689,7 @@ static int getVlc2(Common::BitStream *s, int16 (*table)[2], int bits, int maxDep
code = table[index][0];
n = table[index][1];

if(maxDepth > 2 && n < 0) {
if (maxDepth > 2 && n < 0) {
s->skip(nbBits);
index = s->getBits(-n) + code;
code = table[index][0];
Expand Down Expand Up @@ -861,9 +861,9 @@ void initVlcSparse(VLC *vlc, int nb_bits, int nb_codes,
const void *symbols, int symbols_wrap, int symbols_size) {
vlc->bits = nb_bits;

if(vlc->table_size && vlc->table_size == vlc->table_allocated) {
if (vlc->table_size && vlc->table_size == vlc->table_allocated) {
return;
} else if(vlc->table_size) {
} else if (vlc->table_size) {
error("called on a partially initialized table");
}

Expand Down Expand Up @@ -1353,7 +1353,7 @@ void QDM2Stream::fix_coding_method_array(int sb, int channels, sb_int8_array cod

for (ch = 0; ch < channels; ch++) {
for (j = 0; j < 64; ) {
if((coding_method[ch][sb][j] - 8) > 22) {
if ((coding_method[ch][sb][j] - 8) > 22) {
run = 1;
case_val = 8;
} else {
Expand Down

0 comments on commit 84426c6

Please sign in to comment.