Commit f9a94a39 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* In case we do scaling on SSA subs, we also need to adjust the canvas size in...

* In case we do scaling on SSA subs, we also need to adjust the canvas size in which we render. (there you go bigben :D ) fixes #562
parent 07b14714
......@@ -515,6 +515,18 @@ void spu_RenderSubpictures( spu_t *p_spu, video_format_t *p_fmt,
module_Need( p_spu->p_text, "text renderer", 0, 0 );
}
else if( p_region )
{
if( p_subpic->i_original_picture_height > 0 &&
p_subpic->i_original_picture_width > 0 )
{
p_spu->p_text->fmt_out.video.i_width =
p_spu->p_text->fmt_out.video.i_visible_width =
p_subpic->i_original_picture_width;
p_spu->p_text->fmt_out.video.i_height =
p_spu->p_text->fmt_out.video.i_visible_height =
p_subpic->i_original_picture_height;
}
else
{
p_spu->p_text->fmt_out.video.i_width =
p_spu->p_text->fmt_out.video.i_visible_width =
......@@ -523,6 +535,7 @@ void spu_RenderSubpictures( spu_t *p_spu, video_format_t *p_fmt,
p_spu->p_text->fmt_out.video.i_visible_height =
p_fmt->i_height;
}
}
i_scale_width = i_scale_width_orig;
i_scale_height = i_scale_height_orig;
......
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