Changeset 8c293bce97592b966b99ffc102c1af3e4eefbf66

Show
Ignore:
Timestamp:
09/20/07 22:13:45 (1 year ago)
Author:
Jean-Paul Saman <jpsaman@videolan.org>
git-committer:
Jean-Paul Saman <jpsaman@videolan.org> 1190319225 +0000
git-parent:

[56c32065b8526d9edc91ece10ac04d5dd0732104]

git-author:
Jean-Paul Saman <jpsaman@videolan.org> 1190319225 +0000
Message:

Adjust height of subpicture region.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/codec/zvbi.c

    r3db7e36 r8c293bc  
    288288    fmt.i_width = fmt.i_visible_width = p_page.columns * 12; 
    289289    fmt.i_height = fmt.i_visible_height = p_page.rows * 10; 
    290     fmt.i_bits_per_pixel = p_sys->b_text ? 0 : 32; 
     290    fmt.i_bits_per_pixel = p_sys->b_text ? 0 : 32; 
    291291    fmt.i_x_offset = fmt.i_y_offset = 0; 
    292292 
     
    310310    p_spu->b_absolute = VLC_FALSE; 
    311311    p_spu->b_pausable = VLC_TRUE; 
     312    p_spu->i_width = fmt.i_width; 
     313    p_spu->i_height = fmt.i_height; 
    312314    p_spu->i_original_picture_width = p_page.columns * 12; 
    313315    p_spu->i_original_picture_height = p_page.rows * 10; 
     
    319321 
    320322        i_total = vbi_print_page_region( &p_page, p_text, i_textsize, 
    321                         "ASCII", 0, 0, 0, 0, p_page.columns, 
    322                         p_page.rows ); 
     323                        "UTF-8", 0, 0, 0, 0, p_page.columns, p_page.rows ); 
    323324        p_text[i_total] = '\0'; 
    324325        /* Strip off the pagenumber */ 
     
    326327        p_spu->p_region->psz_text = strdup( &p_text[8] ); 
    327328 
     329        p_spu->p_region->fmt.i_height = p_spu->p_region->fmt.i_visible_height = p_page.rows + 1; 
    328330        msg_Dbg( p_dec, "page %x-%x(%d)\n%s", p_page.pgno, p_page.subno, i_total, p_text ); 
    329331    }