[vlc-devel] commit: t140: fill in missing PTS/DTS information (Pierre Ynard )

git version control git at videolan.org
Fri Sep 25 14:01:39 CEST 2009


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Fri Sep 25 13:37:04 2009 +0200| [87323d5ca8fa5c61f63aefaa5268d7f63966a445] | committer: Pierre Ynard 

t140: fill in missing PTS/DTS information

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

 modules/codec/subtitles/t140.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/modules/codec/subtitles/t140.c b/modules/codec/subtitles/t140.c
index df40501..1a3fc2a 100644
--- a/modules/codec/subtitles/t140.c
+++ b/modules/codec/subtitles/t140.c
@@ -101,5 +101,9 @@ static block_t *Encode( encoder_t *p_enc, subpicture_t *p_spu )
     p_block = block_New( p_enc, len );
     memcpy( p_block->p_buffer, p_region->psz_text, len );
 
+    p_block->i_pts = p_block->i_dts = p_spu->i_start;
+    if( !p_spu->b_ephemer && ( p_spu->i_stop > p_spu->i_start ) )
+        p_block->i_length = p_spu->i_stop - p_spu->i_start;
+
     return p_block;
 }




More information about the vlc-devel mailing list