mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 09:12:33 +00:00
avcodec/motion_est: Fix score squaring overflow
Fixes: CID1604552 Overflowed constant Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
06f01d9fa0
commit
f18b442370
@ -1454,7 +1454,7 @@ static inline int direct_search(MpegEncContext * s, int mb_x, int mb_y)
|
||||
s->b_direct_mv_table[mot_xy][0]= 0;
|
||||
s->b_direct_mv_table[mot_xy][1]= 0;
|
||||
|
||||
return 256*256*256*64;
|
||||
return 256*256*256*64-1;
|
||||
}
|
||||
|
||||
c->xmin= xmin;
|
||||
|
Loading…
Reference in New Issue
Block a user