From c676c31815b5c8bd9ba6eab968bbc0862eaa4bba Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Tue, 8 Nov 2016 17:53:55 +0100 Subject: demux: expose demuxer colorimetry metadata to player Implementation-wise, the values from the demuxer/codec header are merged with the values from the decoder such that the former are used only where the latter are unknown (0/auto). --- video/decode/dec_video.c | 1 + 1 file changed, 1 insertion(+) (limited to 'video/decode') diff --git a/video/decode/dec_video.c b/video/decode/dec_video.c index 7e144a72bc..0dc51943bc 100644 --- a/video/decode/dec_video.c +++ b/video/decode/dec_video.c @@ -245,6 +245,7 @@ static void fix_image_params(struct dec_video *d_video, p.stereo_out = opts->video_stereo_mode; // Detect colorspace from resolution. + mp_colorspace_merge(&p.color, &c->color); mp_image_params_guess_csp(&p); d_video->last_format = *params; -- cgit v1.2.3