[vlc-commits] codec: tx3g: encode bottom/center alignment
Francois Cartegnie
git at videolan.org
Tue Jan 30 10:48:40 CET 2018
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Jan 26 14:01:54 2018 +0100| [60136a0768bc8cdf2f771e3e65204e9b37f39729] | committer: Francois Cartegnie
codec: tx3g: encode bottom/center alignment
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=60136a0768bc8cdf2f771e3e65204e9b37f39729
---
modules/codec/substx3g.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/codec/substx3g.c b/modules/codec/substx3g.c
index 0fba8b0948..4508599543 100644
--- a/modules/codec/substx3g.c
+++ b/modules/codec/substx3g.c
@@ -556,6 +556,8 @@ static void FillExtradataTx3g( void **pp_extra, int *pi_extra )
uint8_t *p_extra = calloc( 1, i_extra );
if( p_extra )
{
+ p_extra[4] = 0x01;/* 1 center, horizontal */
+ p_extra[5] = 0xFF;/* -1 bottom, vertical */
SetDWBE( &p_extra[6], 0x000000FFU ); /* bgcolor */
p_extra[25] = STYLE_DEFAULT_FONT_SIZE;
SetDWBE( &p_extra[26], 0xFFFFFFFFU ); /* fgcolor */
More information about the vlc-commits
mailing list