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->
: id->p_decoder->
? id->p_decoder-> : id->p_encoder->;
/* The same goes with frame rate. Some encoders need it to be initialized */
id->p_encoder-> = ENC_FRAMERATE;
id->p_encoder-> = 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
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment