[vlc-commits] transcode: keep colorspace related info
Ilkka Ollakka
git at videolan.org
Sun Apr 17 10:57:03 CEST 2016
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sat Apr 16 17:31:15 2016 +0300| [2be94350968f4dcbf7ced0c70f8f1307d7fc699a] | committer: Ilkka Ollakka
transcode: keep colorspace related info
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2be94350968f4dcbf7ced0c70f8f1307d7fc699a
---
modules/stream_out/transcode/video.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/stream_out/transcode/video.c b/modules/stream_out/transcode/video.c
index 26573a2..4d2c369 100644
--- a/modules/stream_out/transcode/video.c
+++ b/modules/stream_out/transcode/video.c
@@ -313,6 +313,11 @@ 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;
+ id->p_encoder->fmt_in.video.b_color_range_full = id->p_decoder->fmt_out.video.b_color_range_full;
}
/* Take care of the scaling and chroma conversions. */
More information about the vlc-commits
mailing list