[vlc-commits] zvbi: fix duration on text subtitle

Ilkka Ollakka git at videolan.org
Wed Feb 26 13:04:13 CET 2014


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Wed Feb 26 14:01:04 2014 +0200| [820f8f2acad4376ba99a7fa2d2e2ce895a9819b4] | committer: Ilkka Ollakka

zvbi: fix duration on text subtitle

Missing 0 from commit 18305c12b6469c82fd84560f3935389662bc0475 and change to
use CLOCK_FREQ so it's easier to understand.

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

 modules/codec/zvbi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/zvbi.c b/modules/codec/zvbi.c
index c9f36dc..3b2896c 100644
--- a/modules/codec/zvbi.c
+++ b/modules/codec/zvbi.c
@@ -533,7 +533,7 @@ static subpicture_t *Subpicture( decoder_t *p_dec, video_format_t *p_fmt,
     p_spu->p_region->i_y = 0;
 
     p_spu->i_start = i_pts;
-    p_spu->i_stop = b_text ? i_pts + 1000000 : 0;
+    p_spu->i_stop = b_text ? i_pts + (10*CLOCK_FREQ): 0;
     p_spu->b_ephemer = true;
     p_spu->b_absolute = b_text ? false : true;
 



More information about the vlc-commits mailing list