[vlc-commits] transcode: fix encoder chroma initialization
Thomas Guillem
git at videolan.org
Fri Dec 22 11:06:20 CET 2017
vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Dec 21 13:00:11 2017 +0100| [3e61bafef2acb9ce998deb336b58924951fc6650] | committer: Hugo Beauzée-Luyssen
transcode: fix encoder chroma initialization
(cherry picked from commit 41ef73b463825c15212778c3069dd2ab26c90578)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=3e61bafef2acb9ce998deb336b58924951fc6650
---
modules/stream_out/transcode/video.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/modules/stream_out/transcode/video.c b/modules/stream_out/transcode/video.c
index 8de3f80bfc..92b230adb8 100644
--- a/modules/stream_out/transcode/video.c
+++ b/modules/stream_out/transcode/video.c
@@ -87,7 +87,6 @@ static picture_t *video_new_buffer_decoder( decoder_t *p_dec )
static picture_t *video_new_buffer_encoder( encoder_t *p_enc )
{
- p_enc->fmt_in.video.i_chroma = p_enc->fmt_in.i_codec;
return picture_NewFromFormat( &p_enc->fmt_in.video );
}
@@ -211,7 +210,6 @@ static int transcode_video_new( sout_stream_t *p_stream, sout_stream_id_sys_t *i
/* Initialization of encoder format structures */
es_format_Init( &id->p_encoder->fmt_in, id->p_decoder->fmt_in.i_cat,
id->p_decoder->fmt_out.i_codec );
- id->p_encoder->fmt_in.video.i_chroma = id->p_decoder->fmt_out.i_codec;
/* The dimensions will be set properly later on.
* Just put sensible values so we can test an encoder is available. */
@@ -263,6 +261,7 @@ static int transcode_video_new( sout_stream_t *p_stream, sout_stream_id_sys_t *i
id->p_encoder->fmt_out.p_extra = NULL;
id->p_encoder->fmt_out.i_extra = 0;
}
+ id->p_encoder->fmt_in.video.i_chroma = id->p_encoder->fmt_in.i_codec;
id->p_encoder->p_module = NULL;
if( p_sys->i_threads <= 0 )
More information about the vlc-commits
mailing list