mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-05-13 21:26:33 +02: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> (cherry picked from commit f18b442370d714b930e3e983c2e5d789229f3356) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
c8b26518fc
commit
1c349d968c
@ -1442,7 +1442,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][0]= 0;
|
||||||
s->b_direct_mv_table[mot_xy][1]= 0;
|
s->b_direct_mv_table[mot_xy][1]= 0;
|
||||||
|
|
||||||
return 256*256*256*64;
|
return 256*256*256*64-1;
|
||||||
}
|
}
|
||||||
|
|
||||||
c->xmin= xmin;
|
c->xmin= xmin;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user