]> git.sesse.net Git - vlc/commitdiff
zvbi: fix duration on text subtitle
authorIlkka Ollakka <ileoo@videolan.org>
Wed, 26 Feb 2014 12:01:04 +0000 (14:01 +0200)
committerIlkka Ollakka <ileoo@videolan.org>
Wed, 26 Feb 2014 12:02:47 +0000 (14:02 +0200)
Missing 0 from commit 18305c12b6469c82fd84560f3935389662bc0475 and change to
use CLOCK_FREQ so it's easier to understand.

modules/codec/zvbi.c

index c9f36dce7f5aa644769ebc051646d4b94265dfa2..3b2896ce402878479f247565c7ecb24d1984e505 100644 (file)
@@ -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;