Commit eb39fc67 authored by Ilkka Ollakka's avatar Ilkka Ollakka

transcode: set video chroma before trying to query video filters

parent 82d842bf
...@@ -272,6 +272,7 @@ static void transcode_video_filter_init( sout_stream_t *p_stream, ...@@ -272,6 +272,7 @@ static void transcode_video_filter_init( sout_stream_t *p_stream,
sout_stream_id_t *id ) sout_stream_id_t *id )
{ {
const es_format_t *p_fmt_out = &id->p_decoder->fmt_out; const es_format_t *p_fmt_out = &id->p_decoder->fmt_out;
id->p_encoder->fmt_in.video.i_chroma = id->p_encoder->fmt_in.i_codec;
id->p_f_chain = filter_chain_New( p_stream, "video filter2", id->p_f_chain = filter_chain_New( p_stream, "video filter2",
false, false,
...@@ -526,7 +527,6 @@ static void transcode_video_encoder_init( sout_stream_t *p_stream, ...@@ -526,7 +527,6 @@ static void transcode_video_encoder_init( sout_stream_t *p_stream,
id->p_encoder->fmt_out.video.i_sar_num * id->p_encoder->fmt_out.video.i_width, id->p_encoder->fmt_out.video.i_sar_num * id->p_encoder->fmt_out.video.i_width,
id->p_encoder->fmt_out.video.i_sar_den * id->p_encoder->fmt_out.video.i_height ); id->p_encoder->fmt_out.video.i_sar_den * id->p_encoder->fmt_out.video.i_height );
id->p_encoder->fmt_in.video.i_chroma = id->p_encoder->fmt_in.i_codec;
} }
static int transcode_video_encoder_open( sout_stream_t *p_stream, static int transcode_video_encoder_open( sout_stream_t *p_stream,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment