Commit 3adaa31d authored by Laurent Aimar's avatar Laurent Aimar

Set minimum scale in spu core for text renderer.

parent cc0ba353
...@@ -777,7 +777,8 @@ static void SpuRenderRegion( spu_t *p_spu, ...@@ -777,7 +777,8 @@ static void SpuRenderRegion( spu_t *p_spu,
b_rerender_text = false; b_rerender_text = false;
if( p_region->fmt.i_chroma == VLC_FOURCC('T','E','X','T') ) if( p_region->fmt.i_chroma == VLC_FOURCC('T','E','X','T') )
{ {
SpuRenderText( p_spu, &b_rerender_text, p_subpic, p_region, SCALE_UNIT ); const int i_min_scale_ratio = __MIN( scale_size.w, scale_size.h );
SpuRenderText( p_spu, &b_rerender_text, p_subpic, p_region, i_min_scale_ratio );
b_restore_format = b_rerender_text; b_restore_format = b_rerender_text;
/* Check if the rendering has failed ... */ /* Check if the rendering has failed ... */
......
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