Commit 82d842bf authored by Ilkka Ollakka's avatar Ilkka Ollakka

canvas: handle sar{0,1} and assume it to be 1:1

parent c664aa35
......@@ -180,11 +180,17 @@ static int Activate( vlc_object_t *p_this )
return VLC_EGENERIC;
}
if( p_filter->fmt_in.video.i_sar_num )
i_fmt_in_aspect = (int64_t)p_filter->fmt_in.video.i_sar_num *
p_filter->fmt_in.video.i_width *
VOUT_ASPECT_FACTOR /
p_filter->fmt_in.video.i_sar_den /
p_filter->fmt_in.video.i_height;
else
i_fmt_in_aspect = (int64_t)p_filter->fmt_in.video.i_width *
VOUT_ASPECT_FACTOR /
p_filter->fmt_in.video.i_height;
psz_aspect = var_CreateGetNonEmptyString( p_filter, CFG_PREFIX "aspect" );
if( psz_aspect )
{
......
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