aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/svq3.c
diff options
context:
space:
mode:
authorMatti Hamalainen <ccr@tnsp.org>2013-02-18 02:55:07 +0100
committerLuca Barbato <lu_zero@gentoo.org>2013-02-18 02:55:07 +0100
commit7f3624dc81a196e6d35f9b1dee81c8e863426145 (patch)
treeab76f77e32217c909101750cff0c3896d8347f62 /libavcodec/svq3.c
parentaa11cb79318baa3415d553424ba378f6c62e1f9b (diff)
downloadandroid_external_ffmpeg-7f3624dc81a196e6d35f9b1dee81c8e863426145.tar.gz
android_external_ffmpeg-7f3624dc81a196e6d35f9b1dee81c8e863426145.tar.bz2
android_external_ffmpeg-7f3624dc81a196e6d35f9b1dee81c8e863426145.zip
svq3: unbreak decoding
a7d2861d36756b913e85681b86ed3385274e8ced removed necessary braces.
Diffstat (limited to 'libavcodec/svq3.c')
-rw-r--r--libavcodec/svq3.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c
index 6c695f7984..e24004affd 100644
--- a/libavcodec/svq3.c
+++ b/libavcodec/svq3.c
@@ -559,20 +559,22 @@ static int svq3_decode_mb(SVQ3Context *s, unsigned int mb_type)
if (svq3_mc_dir(s, 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(s, 0, mode, 0, 0) < 0)
return -1;
- else
+ } else {
for (i = 0; i < 4; i++)
memset(h->cur_pic.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(s, 0, mode, 1, mb_type == 3) < 0)
return -1;
- else
+ } else {
for (i = 0; i < 4; i++)
memset(h->cur_pic.f.motion_val[1][b_xy + i * h->b_stride],
0, 4 * 2 * sizeof(int16_t));
+ }
}
mb_type = MB_TYPE_16x16;