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 e13eee37ee)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2020-01-23 12:50:30 +01:00
parent 1756a83aed
commit a78fb50d1f
1 changed files with 2 additions and 2 deletions

View 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;
}