vlc | branch: master | Steve Lhomme <[email protected]> | Wed Aug  1 11:36:47 
2018 +0200| [7ab4c048083661579fb620f1eee137af18ec8dc3] | committer: Steve Lhomme

codec:png: PNG are always decoded to full range

Ref #19127

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7ab4c048083661579fb620f1eee137af18ec8dc3
---

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

diff --git a/modules/codec/png.c b/modules/codec/png.c
index bcb4e0097a..4f4c86b121 100644
--- a/modules/codec/png.c
+++ b/modules/codec/png.c
@@ -126,6 +126,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;

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

Reply via email to