From 4ce9312d76176c9be82d70856672651ed46b01a5 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 21 Oct 2012 17:34:45 +0200 Subject: [PATCH] libavcodec/cook: add {} to complex ifs Signed-off-by: Michael Niedermayer --- libavcodec/cook.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/cook.c b/libavcodec/cook.c index b4d1a37ca1..ac2d502a7a 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; }