Commit c122052b authored by Jean-Paul Saman's avatar Jean-Paul Saman Committed by Jean-Paul Saman

i_total is an int not an unsigned int.

parent a5ea3d08
......@@ -314,7 +314,8 @@ static subpicture_t *Decode( decoder_t *p_dec, block_t **pp_block )
if( p_sys->b_text )
{
/* Separate subs and print as ASCII */
unsigned int i_total, i_textsize = 7000;
int i_total;
unsigned int i_textsize = 7000;
char p_text[7000];
// "ISO-8859-1"
i_total = vbi_print_page_region( &p_page, p_text, i_textsize,
......@@ -331,7 +332,7 @@ static subpicture_t *Decode( decoder_t *p_dec, block_t **pp_block )
else
{
vbi_draw_vt_page( &p_page, VBI_PIXFMT_RGBA32_LE,
p_spu->p_region->picture.p->p_pixels, 1, 1 );
p_spu->p_region->picture.p->p_pixels, 1, 1 );
p_spu->p_region->picture.p->i_lines = p_page.rows * 10;
p_spu->p_region->picture.p->i_pitch = p_page.columns * 12 * 4;
}
......
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