Commit fe294b34 authored by Hendrik Leppkes's avatar Hendrik Leppkes

Merge commit '4885bde3'

* commit '4885bde3':
  motion_est_template: Fix undefined left shift of negative number
Merged-by: 's avatarHendrik Leppkes <h.leppkes@gmail.com>
parents cbed8dbb 4885bde3
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment