[vlc-commits] codec:png: set the default transfer function to sRGB
Steve Lhomme
git at videolan.org
Mon Jul 30 15:31:34 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Jul 30 15:12:43 2018 +0200| [c533dfd94064fef221bca5550cdd898079882b30] | committer: Steve Lhomme
codec:png: set the default transfer function to sRGB
See line 266
Ref #19127
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c533dfd94064fef221bca5550cdd898079882b30
---
modules/codec/png.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/codec/png.c b/modules/codec/png.c
index 4116972005..bcb4e0097a 100644
--- a/modules/codec/png.c
+++ b/modules/codec/png.c
@@ -125,6 +125,7 @@ static int OpenDecoder( vlc_object_t *p_this )
/* Set output properties */
p_dec->fmt_out.i_codec = VLC_CODEC_RGBA;
+ p_dec->fmt_out.video.transfer = TRANSFER_FUNC_SRGB;
/* Set callbacks */
p_dec->pf_decode = DecodeBlock;
More information about the vlc-commits
mailing list