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

Steve Lhomme git at videolan.org
Wed Aug 1 11:44:45 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Aug  1 11:43:11 2018 +0200| [7a64f68ac92617c40d62adbe7bae6749c89f48b5] | committer: Steve Lhomme

codec:jpeg: PNG are always decoded to full range

Ref #19127

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

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

diff --git a/modules/codec/jpeg.c b/modules/codec/jpeg.c
index 7f258dfa59..c0af8ad1da 100644
--- a/modules/codec/jpeg.c
+++ b/modules/codec/jpeg.c
@@ -179,6 +179,7 @@ static int OpenDecoder(vlc_object_t *p_this)
 
     p_dec->fmt_out.i_codec = VLC_CODEC_RGB24;
     p_dec->fmt_out.video.transfer = TRANSFER_FUNC_SRGB;
+    p_dec->fmt_out.video.b_color_range_full = true;
 
     return VLC_SUCCESS;
 }



More information about the vlc-commits mailing list