[FFmpeg-cvslog] libavcodec/cook: add {} to complex ifs

Michael Niedermayer git at videolan.org
Sun Oct 21 18:08:55 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Oct 21 17:34:45 2012 +0200| [4ce9312d76176c9be82d70856672651ed46b01a5] | committer: Michael Niedermayer

libavcodec/cook: add {} to complex ifs

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavcodec/cook.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/cook.c b/libavcodec/cook.c
index b4d1a37..ac2d502 100644
--- a/libavcodec/cook.c
+++ b/libavcodec/cook.c
@@ -953,7 +953,7 @@ static int decode_subpacket(COOKContext *q, COOKSubpacket *p,
                           p->mono_previous_buffer1,
                           outbuffer ? outbuffer[p->ch_idx] : NULL);
 
-    if (p->num_channels == 2)
+    if (p->num_channels == 2) {
         if (p->joint_stereo)
             mlt_compensate_output(q, q->decode_buffer_2, &p->gains1,
                                   p->mono_previous_buffer2,
@@ -962,6 +962,7 @@ static int decode_subpacket(COOKContext *q, COOKSubpacket *p,
             mlt_compensate_output(q, q->decode_buffer_2, &p->gains2,
                                   p->mono_previous_buffer2,
                                   outbuffer ? outbuffer[p->ch_idx + 1] : NULL);
+    }
 
     return 0;
 }



More information about the ffmpeg-cvslog mailing list