diff options
author | Dmitry Kovalev <dkovalev@google.com> | 2013-08-23 15:18:35 -0700 |
---|---|---|
committer | Dmitry Kovalev <dkovalev@google.com> | 2013-08-23 15:18:35 -0700 |
commit | cd2cc27af11c37e2adcb57948d54dbe4a305a36a (patch) | |
tree | c43037a8bec4a869afc31639e6d721aab88068bb /vp9/decoder/vp9_decodemv.c | |
parent | 8e04257bc5ec1af171a7d9c512393a908ff08066 (diff) | |
download | libvpx-cd2cc27af11c37e2adcb57948d54dbe4a305a36a.tar libvpx-cd2cc27af11c37e2adcb57948d54dbe4a305a36a.tar.gz libvpx-cd2cc27af11c37e2adcb57948d54dbe4a305a36a.tar.bz2 libvpx-cd2cc27af11c37e2adcb57948d54dbe4a305a36a.zip |
Removing redundant calls to clamp_mv2.
We could avoid calling clamp_mv2 because it has been already called
inside vp9_find_best_ref_mvs function.
Change-Id: I08edeaf3e11e98c19e67b9711b2523ca5fb1416e
Diffstat (limited to 'vp9/decoder/vp9_decodemv.c')
-rw-r--r-- | vp9/decoder/vp9_decodemv.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/vp9/decoder/vp9_decodemv.c b/vp9/decoder/vp9_decodemv.c index f7f9ab1f5..cb4e594f3 100644 --- a/vp9/decoder/vp9_decodemv.c +++ b/vp9/decoder/vp9_decodemv.c @@ -553,22 +553,14 @@ static void read_inter_block_mode_info(VP9D_COMP *pbi, MODE_INFO *mi, switch (mbmi->mode) { case NEARMV: mv0->as_int = nearby.as_int; - clamp_mv2(&mv0->as_mv, xd); - - if (is_compound) { + if (is_compound) mv1->as_int = nearby_second.as_int; - clamp_mv2(&mv1->as_mv, xd); - } break; case NEARESTMV: mv0->as_int = nearest.as_int; - clamp_mv2(&mv0->as_mv, xd); - - if (is_compound) { + if (is_compound) mv1->as_int = nearest_second.as_int; - clamp_mv2(&mv1->as_mv, xd); - } break; case ZEROMV: |