aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-02-10 20:18:10 -0500
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2012-02-12 01:48:07 +0100
commit0df7d7482c4b2806486ac024979e38c6eaf9086d (patch)
tree6270436b15ca851377c0495f46294d3039a3fac2 /libavcodec
parentb2f27d29267686bf3f80d347423abe2f24ea93f9 (diff)
downloadffmpeg-0df7d7482c4b2806486ac024979e38c6eaf9086d.tar.gz
wavpack: add needed braces for 2 statements inside an if block
(cherry picked from commit 9d7cee50aa349563aa5faca1cff256ffccff6551)
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/wavpack.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c
index 11c90b74e6..c1b6c2f188 100644
--- a/libavcodec/wavpack.c
+++ b/libavcodec/wavpack.c
@@ -904,8 +904,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;
- if (s->stereo_in)
+ if (s->stereo_in) {
s->decorr[i].samplesB[j] = wp_exp2(AV_RL16(buf)); buf += 2;
+ }
}
t += s->decorr[i].value * 2 * (s->stereo_in + 1);
}