git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a156180
)
t140: fill in missing PTS/DTS information
author
Pierre Ynard
<linkfanel@yahoo.fr>
Fri, 25 Sep 2009 11:37:04 +0000
(13:37 +0200)
committer
Pierre Ynard
<linkfanel@yahoo.fr>
Fri, 25 Sep 2009 11:37:04 +0000
(13:37 +0200)
modules/codec/subtitles/t140.c
patch
|
blob
|
history
diff --git
a/modules/codec/subtitles/t140.c
b/modules/codec/subtitles/t140.c
index
df40501
..
1a3fc2a
100644
(file)
--- 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;
}