diff options
author | Paul B Mahol <onemda@gmail.com> | 2023-06-08 12:05:47 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2023-06-08 12:08:01 +0200 |
commit | 024c30aa3b3cdb7d32fa5d79b0973ab8f3065ead (patch) | |
tree | b776f39baa48ef0e7eac1e95c5cc76227679ed66 /libavcodec/exr.c | |
parent | b7e79ba395ef3a0b3bca968eee8cbe1243ad19bb (diff) | |
download | ffmpeg-024c30aa3b3cdb7d32fa5d79b0973ab8f3065ead.tar.gz |
avcodec/exr: remove wrong scaling for 32bit DWA compression
Diffstat (limited to 'libavcodec/exr.c')
-rw-r--r-- | libavcodec/exr.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libavcodec/exr.c b/libavcodec/exr.c index 8cc6b056b2..fae1d08ab0 100644 --- a/libavcodec/exr.c +++ b/libavcodec/exr.c @@ -1119,7 +1119,6 @@ static int dwa_uncompress(const EXRContext *s, const uint8_t *src, int compresse } { - const float scale = s->pixel_type == EXR_FLOAT ? 2.f : 1.f; const int o = s->nb_channels == 4; float *bo = ((float *)td->uncompressed_data) + y * td->xsize * s->nb_channels + td->xsize * (o + 0) + x; @@ -1137,9 +1136,9 @@ static int dwa_uncompress(const EXRContext *s, const uint8_t *src, int compresse convert(yb[idx], ub[idx], vb[idx], &bo[xx], &go[xx], &ro[xx]); - bo[xx] = to_linear(bo[xx], scale); - go[xx] = to_linear(go[xx], scale); - ro[xx] = to_linear(ro[xx], scale); + bo[xx] = to_linear(bo[xx], 1.f); + go[xx] = to_linear(go[xx], 1.f); + ro[xx] = to_linear(ro[xx], 1.f); } bo += td->xsize * s->nb_channels; |