[FFmpeg-cvslog] avcodec/tiff: Prettify code in dng_blit()
Michael Niedermayer
git at videolan.org
Wed Jan 11 15:13:27 EET 2023
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sun Dec 18 16:33:09 2022 +0100| [9ea2c79631083c55f103f9ec22b6c1c7fece65e4] | committer: Michael Niedermayer
avcodec/tiff: Prettify code in dng_blit()
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9ea2c79631083c55f103f9ec22b6c1c7fece65e4
---
libavcodec/tiff.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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) {
More information about the ffmpeg-cvslog
mailing list