Commit 8c293bce authored by Jean-Paul Saman's avatar Jean-Paul Saman

Adjust height of subpicture region.

parent 56c32065
...@@ -309,6 +309,8 @@ static subpicture_t *Decode( decoder_t *p_dec, block_t **pp_block ) ...@@ -309,6 +309,8 @@ static subpicture_t *Decode( decoder_t *p_dec, block_t **pp_block )
p_spu->b_ephemer = VLC_TRUE; p_spu->b_ephemer = VLC_TRUE;
p_spu->b_absolute = VLC_FALSE; p_spu->b_absolute = VLC_FALSE;
p_spu->b_pausable = VLC_TRUE; p_spu->b_pausable = VLC_TRUE;
p_spu->i_width = fmt.i_width;
p_spu->i_height = fmt.i_height;
p_spu->i_original_picture_width = p_page.columns * 12; p_spu->i_original_picture_width = p_page.columns * 12;
p_spu->i_original_picture_height = p_page.rows * 10; p_spu->i_original_picture_height = p_page.rows * 10;
...@@ -318,13 +320,13 @@ static subpicture_t *Decode( decoder_t *p_dec, block_t **pp_block ) ...@@ -318,13 +320,13 @@ static subpicture_t *Decode( decoder_t *p_dec, block_t **pp_block )
char p_text[7000]; char p_text[7000];
i_total = vbi_print_page_region( &p_page, p_text, i_textsize, i_total = vbi_print_page_region( &p_page, p_text, i_textsize,
"ASCII", 0, 0, 0, 0, p_page.columns, "UTF-8", 0, 0, 0, 0, p_page.columns, p_page.rows );
p_page.rows );
p_text[i_total] = '\0'; p_text[i_total] = '\0';
/* Strip off the pagenumber */ /* Strip off the pagenumber */
if( i_total <= 8 ) goto error; if( i_total <= 8 ) goto error;
p_spu->p_region->psz_text = strdup( &p_text[8] ); p_spu->p_region->psz_text = strdup( &p_text[8] );
p_spu->p_region->fmt.i_height = p_spu->p_region->fmt.i_visible_height = p_page.rows + 1;
msg_Dbg( p_dec, "page %x-%x(%d)\n%s", p_page.pgno, p_page.subno, i_total, p_text ); msg_Dbg( p_dec, "page %x-%x(%d)\n%s", p_page.pgno, p_page.subno, i_total, p_text );
} }
else else
......
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