[vlc-commits] codec:png: set the default transfer function to sRGB
Steve Lhomme
git at videolan.org
Tue Aug 7 09:12:38 CEST 2018
vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Jul 30 15:12:43 2018 +0200| [a01c757ee2515d7f0ac75b8f80874e74b7b6b633] | committer: Steve Lhomme
codec:png: set the default transfer function to sRGB
See line 266
Ref #19127
(cherry picked from commit c533dfd94064fef221bca5550cdd898079882b30)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=a01c757ee2515d7f0ac75b8f80874e74b7b6b633
---
modules/codec/png.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/codec/png.c b/modules/codec/png.c
index e9bc71c6a7..219f355341 100644
--- a/modules/codec/png.c
+++ b/modules/codec/png.c
@@ -124,6 +124,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