Skip to content
Snippets Groups Projects
Commit 4885bde3 authored by Ganesh Ajjanagadde's avatar Ganesh Ajjanagadde Committed by Vittorio Giovara
Browse files

motion_est_template: Fix undefined left shift of negative number


This fixes a -Wshift-negative-value warning reported with clang 3.7+.

Signed-off-by: default avatarGanesh Ajjanagadde <gajjanagadde@gmail.com>
parent 977f41e2
No related branches found
No related tags found
No related merge requests found
......@@ -704,7 +704,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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment