Commit efeca308 authored by Gildas Bazin's avatar Gildas Bazin

* modules/stream_out/transcode.c: try more sensible width/height values when...

* modules/stream_out/transcode.c: try more sensible width/height values when testing the video encoder.
parent 8b679815
......@@ -1219,8 +1219,10 @@ static int transcode_video_ffmpeg_new( sout_stream_t *p_stream,
/* The dimensions will be set properly later on.
* Just put sensible values so we can test if there is an encoder. */
id->p_encoder->fmt_in.video.i_width = 16;
id->p_encoder->fmt_in.video.i_height = 16;
id->p_encoder->fmt_in.video.i_width =
id->f_src.video.i_width ? id->f_src.video.i_width : 16;
id->p_encoder->fmt_in.video.i_height =
id->f_src.video.i_height ? id->f_src.video.i_height : 16;
id->p_encoder->fmt_in.video.i_frame_rate = 25; /* FIXME as it break mpeg */
id->p_encoder->fmt_in.video.i_frame_rate_base= 1;
......
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