mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 07:31:22 +01:00
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: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
This commit is contained in:
parent
977f41e274
commit
4885bde318
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue