aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2020-01-23 12:50:30 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2020-05-19 17:17:35 +0200
commita78fb50d1f6b702180f15ed599c43121a9753615 (patch)
treec8f6caecbae3387510891f4d08d0258cc0623803
parent1756a83aedd444ad58dce415ce6c0938ddf791ea (diff)
downloadffmpeg-a78fb50d1f6b702180f15ed599c43121a9753615.tar.gz
avcodec/motion_est_template: Fix invalid shifts in no_sub_motion_search()
Fixes: Ticket8167 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit e13eee37ee3268b0a985ddc74a9bde0179bd553c) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-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;
}