[vlc-devel] [PATCH 3/4] transcode: keep colorspace related info

Ilkka Ollakka ileoo at videolan.org
Sat Apr 16 17:38:57 CEST 2016


---
 modules/stream_out/transcode/video.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/stream_out/transcode/video.c b/modules/stream_out/transcode/video.c
index 26573a2..b048a1c 100644
--- a/modules/stream_out/transcode/video.c
+++ b/modules/stream_out/transcode/video.c
@@ -313,6 +313,10 @@ static void transcode_video_filter_init( sout_stream_t *p_stream,
             id->p_encoder->fmt_in.video.i_sar_den;
     }
 
+    /* Keep colorspace etc info along */
+    id->p_encoder->fmt_in.video.space     = id->p_decoder->fmt_out.video.space;
+    id->p_encoder->fmt_in.video.transfer  = id->p_decoder->fmt_out.video.transfer;
+    id->p_encoder->fmt_in.video.primaries = id->p_decoder->fmt_out.video.primaries;
 }
 
 /* Take care of the scaling and chroma conversions. */
-- 
2.6.6



More information about the vlc-devel mailing list