diff options
Diffstat (limited to 'src/film_grain.h')
-rw-r--r-- | src/film_grain.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/film_grain.h b/src/film_grain.h index f2c1e93..bda8458 100644 --- a/src/film_grain.h +++ b/src/film_grain.h @@ -104,7 +104,9 @@ class FilmGrain { using Pixel = typename std::conditional<bitdepth == 8, uint8_t, uint16_t>::type; static constexpr int kScalingLutLength = - (kScalingLookupTableSize + kScalingLookupTablePadding) << (bitdepth - 8); + (bitdepth == 10) + ? (kScalingLookupTableSize + kScalingLookupTablePadding) << 2 + : kScalingLookupTableSize + kScalingLookupTablePadding; bool Init(); |