Commit 88437ee2 authored by Jean-Paul Saman's avatar Jean-Paul Saman Committed by Jean-Paul Saman

Strip off pagenumber from the resulting string.

parent 46df8eb2
......@@ -321,10 +321,11 @@ static subpicture_t *Decode( decoder_t *p_dec, block_t **pp_block )
"UTF-8", 0, 0, 0, 0,
p_page.columns, p_page.rows );
p_text[i_total] = '\0';
if( i_total == 0 ) goto error;
p_spu->p_region->psz_text = strdup( &p_text[0] );
/* Strip off the pagenumber */
if( i_total <= 8 ) goto error;
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\n%s", p_page.pgno, p_page.subno, p_text );
}
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