Skip to content
Snippets Groups Projects
Commit 7f3624dc authored by Matti Hamalainen's avatar Matti Hamalainen Committed by Luca Barbato
Browse files

svq3: unbreak decoding

a7d2861d removed necessary braces.
parent aa11cb79
No related branches found
No related tags found
No related merge requests found
...@@ -559,20 +559,22 @@ static int svq3_decode_mb(SVQ3Context *s, unsigned int mb_type) ...@@ -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) if (svq3_mc_dir(s, mb_type - 1, mode, 0, 0) < 0)
return -1; return -1;
} else { /* AV_PICTURE_TYPE_B */ } else { /* AV_PICTURE_TYPE_B */
if (mb_type != 2) if (mb_type != 2) {
if (svq3_mc_dir(s, 0, mode, 0, 0) < 0) if (svq3_mc_dir(s, 0, mode, 0, 0) < 0)
return -1; return -1;
else } else {
for (i = 0; i < 4; i++) for (i = 0; i < 4; i++)
memset(h->cur_pic.f.motion_val[0][b_xy + i * h->b_stride], memset(h->cur_pic.f.motion_val[0][b_xy + i * h->b_stride],
0, 4 * 2 * sizeof(int16_t)); 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) if (svq3_mc_dir(s, 0, mode, 1, mb_type == 3) < 0)
return -1; return -1;
else } else {
for (i = 0; i < 4; i++) for (i = 0; i < 4; i++)
memset(h->cur_pic.f.motion_val[1][b_xy + i * h->b_stride], memset(h->cur_pic.f.motion_val[1][b_xy + i * h->b_stride],
0, 4 * 2 * sizeof(int16_t)); 0, 4 * 2 * sizeof(int16_t));
}
} }
mb_type = MB_TYPE_16x16; mb_type = MB_TYPE_16x16;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment