Skip to content

Commit

Permalink
Merge pull request #77 from Jamaika1/patch-4
Browse files Browse the repository at this point in the history
Fix shifting negative value warning
  • Loading branch information
kpchoi authored Sep 21, 2024
2 parents e418a0f + 0a4a133 commit 7966f43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src_main/xevdm_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -2061,7 +2061,7 @@ static void calculate_bounding_box_size(int w, int h, s16 ac_mv[VER_NUM][MV_D],

static BOOL check_eif_num_fetched_lines_restrictions(s16 ac_mv[VER_NUM][MV_D], int d_hor[MV_D], int d_ver[MV_D], int mv_precision)
{
if (d_ver[MV_Y] < -1 << mv_precision)
if (d_ver[MV_Y] < -(1 << mv_precision))
return FALSE;

if ((XEVD_MAX(0, d_ver[MV_Y]) + abs(d_hor[MV_Y])) * (1 + EIF_SUBBLOCK_SIZE) > (EIF_NUM_ALLOWED_FETCHED_LINES_FOR_THE_FIRST_LINE - 2) << mv_precision)
Expand Down

0 comments on commit 7966f43

Please sign in to comment.