mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
Merge commit '4885bde3187a2bb0cae85b67796e07db233bf77f'
* commit '4885bde3187a2bb0cae85b67796e07db233bf77f': motion_est_template: Fix undefined left shift of negative number Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
This commit is contained in:
commit
fe294b3403
@ -702,7 +702,8 @@ static int sab_diamond_search(MpegEncContext * s, int *best, int dmin,
|
||||
|
||||
key += (1<<(ME_MAP_MV_BITS-1)) + (1<<(2*ME_MAP_MV_BITS-1));
|
||||
|
||||
if((key&(-(1<<(2*ME_MAP_MV_BITS)))) != map_generation) continue;
|
||||
if ((key & (-(1 << (2 * ME_MAP_MV_BITS)))) != map_generation)
|
||||
continue;
|
||||
|
||||
minima[j].height= score_map[i];
|
||||
minima[j].x= key & ((1<<ME_MAP_MV_BITS)-1); key>>=ME_MAP_MV_BITS;
|
||||
|
Loading…
Reference in New Issue
Block a user