[vlc-devel] commit: Enforce the --vbi-position option. Don't crop letters. ( Antoine Cellerier )

git version control git at videolan.org
Wed May 28 16:06:09 CEST 2008


vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Wed May 28 16:04:14 2008 +0200| [0b14c73d42ed99afc9d4234c8399315aab2c45ae]

Enforce the --vbi-position option. Don't crop letters.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0b14c73d42ed99afc9d4234c8399315aab2c45ae
---

 modules/codec/zvbi.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/modules/codec/zvbi.c b/modules/codec/zvbi.c
index 97df63a..7800ac7 100644
--- a/modules/codec/zvbi.c
+++ b/modules/codec/zvbi.c
@@ -344,7 +344,7 @@ static subpicture_t *Decode( decoder_t *p_dec, block_t **pp_block )
 
     p_spu->p_region->i_x = 0;
     p_spu->p_region->i_y = 0;
-    p_spu->p_region->i_align = SUBPICTURE_ALIGN_BOTTOM;
+    p_spu->p_region->i_align = p_sys->i_align;
 
     /* Normal text subs, easy markup */
     p_spu->i_flags = SUBPICTURE_ALIGN_BOTTOM;
@@ -381,7 +381,6 @@ static subpicture_t *Decode( decoder_t *p_dec, block_t **pp_block )
         if( i_total <= 40 ) 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;
 #ifdef ZVBI_DEBUG
         msg_Info( p_dec, "page %x-%x(%d)\n%s", p_page.pgno, p_page.subno, i_total, p_text );
 #endif




More information about the vlc-devel mailing list