]> git.sesse.net Git - ffmpeg/commitdiff
libavcodec/cook: add {} to complex ifs
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 21 Oct 2012 15:34:45 +0000 (17:34 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 21 Oct 2012 16:05:22 +0000 (18:05 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/cook.c

index b4d1a37ca164be1d0bacab73441a93583c99b3de..ac2d502a7adf6987e12b8d5027f165c331ba215f 100644 (file)
@@ -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;
 }