vlc | branch: master | Steve Lhomme <[email protected]> | 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;

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to