X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fmotion_est_template.c;h=37ff1102eae25a7554b7c2f4d7737b397cfd82db;hb=6411ac68865d2b37b84246e6b09f327cb8a13b69;hp=25bab9ddfb6c5fe846882a4117796bc645967c3f;hpb=eadf6cb2c4e80304d9e18672bf5f5359a676deb2;p=ffmpeg diff --git a/libavcodec/motion_est_template.c b/libavcodec/motion_est_template.c index 25bab9ddfb6..37ff1102eae 100644 --- a/libavcodec/motion_est_template.c +++ b/libavcodec/motion_est_template.c @@ -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;