[vlc-commits] codec:png: PNG are always decoded to full range

Steve Lhomme git at videolan.org
Tue Aug 7 09:12:41 CEST 2018


vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Aug  1 11:36:47 2018 +0200| [61f621c2a4d1753e04676cdccd2da9b82b477f33] | committer: Steve Lhomme

codec:png: PNG are always decoded to full range

Ref #19127

(cherry picked from commit 7ab4c048083661579fb620f1eee137af18ec8dc3)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=61f621c2a4d1753e04676cdccd2da9b82b477f33
---

 modules/codec/png.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/codec/png.c b/modules/codec/png.c
index 219f355341..37d83347fe 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;
+    p_dec->fmt_out.video.b_color_range_full = true;
 
     /* Set callbacks */
     p_dec->pf_decode = DecodeBlock;



More information about the vlc-commits mailing list