[vlc-commits] codec:jpeg: set the decoder output to sRGB
Steve Lhomme
git at videolan.org
Tue Aug 7 09:12:39 CEST 2018
vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Jul 30 15:35:10 2018 +0200| [7f62b64b6468907185c8582382b44700845788dc] | committer: Steve Lhomme
codec:jpeg: set the decoder output to sRGB
That's how the decoder is configured in line 522
Ref #19127
(cherry picked from commit 8dc281d2d01e5dfefbe4087c5bc9bec3e5601906)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=7f62b64b6468907185c8582382b44700845788dc
---
modules/codec/jpeg.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/codec/jpeg.c b/modules/codec/jpeg.c
index 2c0224cc63..51fa6e65f3 100644
--- a/modules/codec/jpeg.c
+++ b/modules/codec/jpeg.c
@@ -178,6 +178,7 @@ static int OpenDecoder(vlc_object_t *p_this)
p_dec->pf_decode = DecodeBlock;
p_dec->fmt_out.i_codec = VLC_CODEC_RGB24;
+ p_dec->fmt_out.video.transfer = TRANSFER_FUNC_SRGB;
return VLC_SUCCESS;
}
More information about the vlc-commits
mailing list