Browse Source

lavfi/hue: use av_clip_uint8() instead of av_clip_uint8_c()

The generic version should be faster if optimized.
tags/n2.2-rc1
Stefano Sabatini 12 years ago
parent
commit
028d8dd367
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavfilter/vf_hue.c

+ 2
- 2
libavfilter/vf_hue.c View File

@@ -144,8 +144,8 @@ static inline void create_chrominance_lut(HueContext *h, const int32_t c,
new_v = ((s * u) + (c * v) + (1 << 15) + (128 << 16)) >> 16;

/* Prevent a potential overflow */
h->lut_u[i][j] = av_clip_uint8_c(new_u);
h->lut_v[i][j] = av_clip_uint8_c(new_v);
h->lut_u[i][j] = av_clip_uint8(new_u);
h->lut_v[i][j] = av_clip_uint8(new_v);
}
}
}


Loading…
Cancel
Save