wavpack: add needed braces for 2 statements inside an if block
authorJustin Ruggles <justin.ruggles@gmail.com>
Sat, 11 Feb 2012 01:18:10 +0000 (20:18 -0500)
committerJustin Ruggles <justin.ruggles@gmail.com>
Sat, 11 Feb 2012 01:27:55 +0000 (20:27 -0500)
libavcodec/wavpack.c

index 31604f5..fb0e0b2 100644 (file)
@@ -911,8 +911,9 @@ static int wavpack_decode_block(AVCodecContext *avctx, int block_no,
                 } else {
                     for (j = 0; j < s->decorr[i].value; j++) {
                         s->decorr[i].samplesA[j] = wp_exp2(AV_RL16(buf)); buf += 2;
                 } else {
                     for (j = 0; j < s->decorr[i].value; j++) {
                         s->decorr[i].samplesA[j] = wp_exp2(AV_RL16(buf)); buf += 2;
-                        if (s->stereo_in)
+                        if (s->stereo_in) {
                             s->decorr[i].samplesB[j] = wp_exp2(AV_RL16(buf)); buf += 2;
                             s->decorr[i].samplesB[j] = wp_exp2(AV_RL16(buf)); buf += 2;
+                        }
                     }
                     t += s->decorr[i].value * 2 * (s->stereo_in + 1);
                 }
                     }
                     t += s->decorr[i].value * 2 * (s->stereo_in + 1);
                 }