aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vc1_mc.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2014-11-11 17:40:00 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-11-13 01:41:25 +0100
commit28d82b7675bea76a1349070a3cdd737d964d4775 (patch)
treeb1d6b8e6a5fa84e1944021e1ad6e91e5a0ae27fc /libavcodec/vc1_mc.c
parent2c98dc75f2802a2fe91922d4a11b698b66420e5b (diff)
downloadffmpeg-28d82b7675bea76a1349070a3cdd737d964d4775.tar.gz
vc1dec: refactor check with missing parenthesis
FATE tests updated accordingly, no visual difference. CC: libav-stable@libav.org Bug-Id: CID 1087087
Diffstat (limited to 'libavcodec/vc1_mc.c')
-rw-r--r--libavcodec/vc1_mc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libavcodec/vc1_mc.c b/libavcodec/vc1_mc.c
index 00a003ce8c..e3a75d5845 100644
--- a/libavcodec/vc1_mc.c
+++ b/libavcodec/vc1_mc.c
@@ -796,10 +796,9 @@ void ff_vc1_interp_mc(VC1Context *v)
my = s->mv[1][0][1];
uvmx = (mx + ((mx & 3) == 3)) >> 1;
uvmy = (my + ((my & 3) == 3)) >> 1;
- if (v->field_mode) {
- if (v->cur_field_type != v->ref_field_type[1])
- my = my - 2 + 4 * v->cur_field_type;
- uvmy = uvmy - 2 + 4 * v->cur_field_type;
+ if (v->field_mode && v->cur_field_type != v->ref_field_type[1]) {
+ my = my - 2 + 4 * v->cur_field_type;
+ uvmy = uvmy - 2 + 4 * v->cur_field_type;
}
if (v->fastuvmc) {
uvmx = uvmx + ((uvmx < 0) ? -(uvmx & 1) : (uvmx & 1));