[vlc-commits] png: set the colorspace and primaries to sRGB as well
Steve Lhomme
git at videolan.org
Tue Jun 4 08:38:24 CEST 2019
vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Jun 3 14:13:03 2019 +0200| [e643bb1110d343438bed6f25617525ebdb28d6bd] | committer: Steve Lhomme
png: 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.
(cherry picked from commit 3275083c5e6aeac895a6fd8c76afc3c36c8f0a5e)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=e643bb1110d343438bed6f25617525ebdb28d6bd
---
modules/codec/png.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/modules/codec/png.c b/modules/codec/png.c
index 37d83347fe..5ef76f0a07 100644
--- a/modules/codec/png.c
+++ b/modules/codec/png.c
@@ -124,7 +124,9 @@ 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.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.b_color_range_full = true;
/* Set callbacks */
More information about the vlc-commits
mailing list