mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-22 05:40:27 +08:00
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:
@@ -156,8 +156,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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user