avcodec/motion_est_template: Fix invalid shifts in no_sub_motion_search()
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 23 Jan 2020 11:50:30 +0000 (12:50 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 27 Feb 2020 17:26:26 +0000 (18:26 +0100)
Fixes: Ticket8167

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/motion_est_template.c

index 014038e..13e73f2 100644 (file)
@@ -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;
 }