Commit 5d1a7f70 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

transcode: video: Provide a default frame rate when probing encoders

Not providing the framerate will cause some encoders to fail while they
could support the requested operation.
parent e416b441
......@@ -224,6 +224,9 @@ static int transcode_video_new( sout_stream_t *p_stream, sout_stream_id_sys_t *i
? id->p_encoder->fmt_out.video.i_visible_height
: id->p_decoder->fmt_in.video.i_visible_height
? id->p_decoder->fmt_in.video.i_visible_height : id->p_encoder->fmt_in.video.i_height;
/* The same goes with frame rate. Some encoders need it to be initialized */
id->p_encoder->fmt_in.video.i_frame_rate = ENC_FRAMERATE;
id->p_encoder->fmt_in.video.i_frame_rate_base = ENC_FRAMERATE_BASE;
id->p_encoder->i_threads = p_sys->i_threads;
id->p_encoder->p_cfg = p_sys->p_video_cfg;
......
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