Merge pull request #6 from skal65535/fix

Fix several compile warnings
This commit is contained in:
Jovasa 2022-06-16 10:59:00 +03:00 committed by GitHub
commit f269ba436b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -508,7 +508,7 @@ static void predict_cclm(
int available_left_below = 0;
uvg_pixel *y_rec = lcu->rec.y + x_scu + y_scu * LCU_WIDTH;
const uvg_pixel *y_rec = lcu->rec.y + x_scu + y_scu * LCU_WIDTH;
const int stride2 = (((state->tile->frame->width + 7) & ~7) + FRAME_PADDING_LUMA);
// Essentially what this does is that it uses 6-tap filtering to downsample

View file

@ -1204,7 +1204,7 @@ int uvg_get_skip_context(int x, int y, lcu_t* const lcu, cu_array_t* const cu_a,
/**
* \brief Calculate the scaled MV
*/
static INLINE int16_t get_scaled_mv(int16_t mv, int scale)
static INLINE int32_t get_scaled_mv(int16_t mv, int scale)
{
int32_t scaled = scale * mv;
return CLIP(-131072, 131071, (scaled + 127 + (scaled < 0)) >> 8);