Commit ed1d9723 authored by Laurent Aimar's avatar Laurent Aimar

Fixed AR returned by various text renderer.

parent 2d9a2010
......@@ -551,6 +551,8 @@ static int Render( filter_t *p_filter, subpicture_region_t *p_region,
if( p_region->fmt.i_visible_height > 0 )
fmt.i_visible_height = p_region->fmt.i_visible_height;
fmt.i_x_offset = fmt.i_y_offset = 0;
fmt.i_sar_num = 1;
fmt.i_sar_den = 1;
assert( !p_region->p_picture );
p_region->p_picture = picture_NewFromFormat( &fmt );
......@@ -816,6 +818,8 @@ static int RenderYUVA( filter_t *p_filter, subpicture_region_t *p_region,
if( p_region->fmt.i_visible_height > 0 )
fmt.i_visible_height = p_region->fmt.i_visible_height;
fmt.i_x_offset = fmt.i_y_offset = 0;
fmt.i_sar_num = 1;
fmt.i_sar_den = 1;
p_region->p_picture = picture_NewFromFormat( &fmt );
if( !p_region->p_picture )
......
......@@ -1038,6 +1038,8 @@ static int RenderYUVA( filter_t *p_filter, subpicture_region_t *p_region,
fmt.i_width = fmt.i_visible_width = i_width;
fmt.i_height = fmt.i_visible_height = __MIN( i_height, i_textblock_height + VERTICAL_MARGIN * 2);
fmt.i_x_offset = fmt.i_y_offset = 0;
fmt.i_sar_num = 1;
fmt.i_sar_den = 1;
p_region->p_picture = picture_NewFromFormat( &fmt );
if( !p_region->p_picture )
......
......@@ -226,6 +226,8 @@ static int Render( filter_t *p_filter, subpicture_region_t *p_region,
fmt.i_width = fmt.i_visible_width = i_width + (b_outline ? 4 : 0);
fmt.i_height = fmt.i_visible_height = i_height + (b_outline ? 4 : 0);
fmt.i_x_offset = fmt.i_y_offset = 0;
fmt.i_sar_num = 1;
fmt.i_sar_den = 1;
/* Build palette */
fmt.p_palette = calloc( 1, sizeof(*fmt.p_palette) );
......
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