summaryrefslogtreecommitdiff
path: root/libavcodec/motion_est_template.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2020-01-23 12:50:30 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2020-02-27 18:26:26 +0100
commite13eee37ee3268b0a985ddc74a9bde0179bd553c (patch)
tree977003a219d2196c94b359f5cd6400b89dda3128 /libavcodec/motion_est_template.c
parent35958782819c00211e247332ab18fbf2f28267e1 (diff)
downloadffmpeg-e13eee37ee3268b0a985ddc74a9bde0179bd553c.tar.gz
avcodec/motion_est_template: Fix invalid shifts in no_sub_motion_search()
Fixes: Ticket8167 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/motion_est_template.c')
-rw-r--r--libavcodec/motion_est_template.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/motion_est_template.c b/libavcodec/motion_est_template.c
index 014038e54f..13e73f2653 100644
--- a/libavcodec/motion_est_template.c
+++ b/libavcodec/motion_est_template.c
@@ -157,8 +157,8 @@ static int no_sub_motion_search(MpegEncContext * s,
int src_index, int ref_index,
int size, int h)
{
- (*mx_ptr)<<=1;
- (*my_ptr)<<=1;
+ (*mx_ptr) *= 2;
+ (*my_ptr) *= 2;
return dmin;
}