aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2022-12-18 16:33:09 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2023-01-11 12:12:26 +0100
commit9ea2c79631083c55f103f9ec22b6c1c7fece65e4 (patch)
tree9ab3f809bb322dc97708f7dd11a761d0b2480c46
parent44f45711ccbc6bdfcc047402d0e30eb7f3d6214c (diff)
downloadffmpeg-9ea2c79631083c55f103f9ec22b6c1c7fece65e4.tar.gz
avcodec/tiff: Prettify code in dng_blit()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/tiff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
index 820457fedc..1a1879de89 100644
--- a/libavcodec/tiff.c
+++ b/libavcodec/tiff.c
@@ -326,7 +326,7 @@ static void av_always_inline dng_blit(TiffContext *s, uint8_t *dst, int dst_stri
scale_factor[i] = s->premultiply[s->pattern[i]] * 65535.f / (s->white_level - s->black_level[i]);
} else {
for (int i = 0; i < 4; i++)
- scale_factor[i] = 65535.f * s->premultiply[i] / (s->white_level - s->black_level[i]);
+ scale_factor[i] = s->premultiply[ i ] * 65535.f / (s->white_level - s->black_level[i]);
}
if (is_single_comp) {