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

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


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

codec:jpeg: JPEG are always decoded to full range

Ref #19127

(cherry picked from commit 7a64f68ac92617c40d62adbe7bae6749c89f48b5)

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

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

diff --git a/modules/codec/jpeg.c b/modules/codec/jpeg.c
index 51fa6e65f3..7b631acf47 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