[FFmpeg-cvslog] wavpack: add needed braces for 2 statements inside an if block

Justin Ruggles git at videolan.org
Sun Feb 12 01:48:50 CET 2012


ffmpeg | branch: release/0.10 | Justin Ruggles <justin.ruggles at gmail.com> | Fri Feb 10 20:18:10 2012 -0500| [0df7d7482c4b2806486ac024979e38c6eaf9086d] | committer: Carl Eugen Hoyos

wavpack: add needed braces for 2 statements inside an if block
(cherry picked from commit 9d7cee50aa349563aa5faca1cff256ffccff6551)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0df7d7482c4b2806486ac024979e38c6eaf9086d
---

 libavcodec/wavpack.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c
index 11c90b7..c1b6c2f 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);
                 }



More information about the ffmpeg-cvslog mailing list