vlc | branch: master | Steve Lhomme <[email protected]> | Mon Jun  3 14:12:54 
2019 +0200| [bb405fd42020c877fe9ce301004da499dfc7e050] | committer: Steve Lhomme

jpeg: set the colorspace and primaries to sRGB as well

The transfer was already set.

If we don't do that it may be assumed to be 709 or 601 depending on
the picture dimensions.

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

 modules/codec/jpeg.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/codec/jpeg.c b/modules/codec/jpeg.c
index 788a6d78c6..486502b211 100644
--- a/modules/codec/jpeg.c
+++ b/modules/codec/jpeg.c
@@ -180,7 +180,9 @@ static int OpenDecoder(vlc_object_t *p_this)
 
     p_dec->fmt_out.video.i_chroma =
     p_dec->fmt_out.i_codec = VLC_CODEC_RGB24;
-    p_dec->fmt_out.video.transfer = TRANSFER_FUNC_SRGB;
+    p_dec->fmt_out.video.transfer  = TRANSFER_FUNC_SRGB;
+    p_dec->fmt_out.video.space     = COLOR_SPACE_SRGB;
+    p_dec->fmt_out.video.primaries = COLOR_PRIMARIES_SRGB;
     p_dec->fmt_out.video.color_range = COLOR_RANGE_FULL;
     video_format_FixRgb(&p_dec->fmt_out.video);
 

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

Reply via email to