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

Justin Ruggles git at videolan.org
Sun Feb 12 01:34:06 CET 2012


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Fri Feb 10 20:18:10 2012 -0500| [9d7cee50aa349563aa5faca1cff256ffccff6551] | committer: Justin Ruggles

wavpack: add needed braces for 2 statements inside an if block

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

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

diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c
index 31604f5..fb0e0b2 100644
--- a/libavcodec/wavpack.c
+++ b/libavcodec/wavpack.c
@@ -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;
-                        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