[FFmpeg-cvslog] svq3: unbreak decoding

Matti Hamalainen git at videolan.org
Tue Feb 19 01:25:08 CET 2013


ffmpeg | branch: release/1.1 | Matti Hamalainen <ccr at tnsp.org> | Mon Feb 18 02:49:45 2013 +0100| [d61c6ebccfde3797a5d376e0f203550d7beb0576] | committer: Luca Barbato

svq3: unbreak decoding

a7d2861d36756b913e85681b86ed3385274e8ced removed necessary braces.

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

 libavcodec/svq3.c |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c
index 266e22f..68bf2f7 100644
--- a/libavcodec/svq3.c
+++ b/libavcodec/svq3.c
@@ -550,20 +550,22 @@ static int svq3_decode_mb(SVQ3Context *svq3, unsigned int mb_type)
             if (svq3_mc_dir(h, mb_type - 1, mode, 0, 0) < 0)
                 return -1;
         } else {        /* AV_PICTURE_TYPE_B */
-            if (mb_type != 2)
+            if (mb_type != 2) {
                 if (svq3_mc_dir(h, 0, mode, 0, 0) < 0)
                     return -1;
-            else
+            } else {
                 for (i = 0; i < 4; i++)
                     memset(s->current_picture.f.motion_val[0][b_xy + i * h->b_stride],
                            0, 4 * 2 * sizeof(int16_t));
-            if (mb_type != 1)
+            }
+            if (mb_type != 1) {
                 if (svq3_mc_dir(h, 0, mode, 1, mb_type == 3) < 0)
                     return -1;
-            else
+            } else {
                 for (i = 0; i < 4; i++)
                     memset(s->current_picture.f.motion_val[1][b_xy + i * h->b_stride],
                            0, 4 * 2 * sizeof(int16_t));
+            }
         }
 
         mb_type = MB_TYPE_16x16;



More information about the ffmpeg-cvslog mailing list