aboutsummaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorJohannes Schickel2012-08-09 03:25:14 +0200
committerJohannes Schickel2012-08-09 03:25:14 +0200
commit84426c63553f94c26fa299dc2659cec16c24cd3f (patch)
treead240bb9632ae58b769cabcf27984b2973345eb8 /audio
parentb4196e48b16c458ef6564a051495525ff5a282f0 (diff)
downloadscummvm-rg350-84426c63553f94c26fa299dc2659cec16c24cd3f.tar.gz
scummvm-rg350-84426c63553f94c26fa299dc2659cec16c24cd3f.tar.bz2
scummvm-rg350-84426c63553f94c26fa299dc2659cec16c24cd3f.zip
AUDIO: Fix "if" formatting in QDM2 code.
Diffstat (limited to 'audio')
-rw-r--r--audio/decoders/qdm2.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/audio/decoders/qdm2.cpp b/audio/decoders/qdm2.cpp
index 31405d3ab1..732de311aa 100644
--- a/audio/decoders/qdm2.cpp
+++ b/audio/decoders/qdm2.cpp
@@ -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];
@@ -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");
}
@@ -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 {