Commit eb691987 authored by Eric Petit's avatar Eric Petit
Browse files

Set i_visible_width/height, some video filters need it (e.g. croppadd)

parent 291e63dd
......@@ -1666,8 +1666,15 @@ static void transcode_video_encoder_init( sout_stream_t *p_stream,
f_aspect = f_aspect * i_dst_width / i_dst_height;
/* Store calculated values */
id->p_encoder->fmt_out.video.i_width = i_dst_width;
id->p_encoder->fmt_out.video.i_height = i_dst_height;
id->p_encoder->fmt_out.video.i_width =
id->p_encoder->fmt_out.video.i_visible_width = i_dst_width;
id->p_encoder->fmt_out.video.i_height =
id->p_encoder->fmt_out.video.i_visible_height = i_dst_height;
id->p_encoder->fmt_in.video.i_width =
id->p_encoder->fmt_in.video.i_visible_width = i_dst_width;
id->p_encoder->fmt_in.video.i_height =
id->p_encoder->fmt_in.video.i_visible_height = i_dst_height;
id->p_encoder->fmt_in.video.i_width = i_dst_width;
id->p_encoder->fmt_in.video.i_height = i_dst_height;
......
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