Commit c2130538 authored by Francois Cartegnie's avatar Francois Cartegnie

encoder: dirac: match source geometry

refs #10386
Still junk on bottom due to invalid plane->i_visible_lines
parent cf77bbb0
......@@ -500,8 +500,6 @@ static int OpenEncoder( vlc_object_t *p_this )
dirac_encoder_context_init( &p_sys->ctx, guessed_video_fmt );
/* constants set from the input video format */
p_sys->ctx.src_params.width = p_enc->fmt_in.video.i_visible_width;
p_sys->ctx.src_params.height = p_enc->fmt_in.video.i_visible_height;
p_sys->ctx.src_params.frame_rate.numerator = p_enc->fmt_in.video.i_frame_rate;
p_sys->ctx.src_params.frame_rate.denominator = p_enc->fmt_in.video.i_frame_rate_base;
unsigned u_asr_num, u_asr_den;
......@@ -558,6 +556,9 @@ static int OpenEncoder( vlc_object_t *p_this )
break;
}
p_sys->ctx.src_params.width = picture.format.i_visible_width;
p_sys->ctx.src_params.height = picture.format.i_visible_height;
p_sys->ctx.enc_params.qf = var_GetFloat( p_enc, ENC_CFG_PREFIX ENC_QUALITY_FACTOR );
/* use bitrate from sout-transcode-vb in kbps */
......
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