]> git.sesse.net Git - vlc/commitdiff
* es_out: avoid null dts/pts after *9/100 (with non null input values).
authorLaurent Aimar <fenrir@videolan.org>
Sun, 23 May 2004 13:35:26 +0000 (13:35 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Sun, 23 May 2004 13:35:26 +0000 (13:35 +0000)
src/input/es_out.c

index 6f8265f78905e7cd70710428662b8281512052fe..a129944ce40c841cd6a1b280b32a6b6969f1fbd8 100644 (file)
@@ -461,15 +461,16 @@ static int EsOutSend( es_out_t *out, es_out_id_t *es, block_t *p_block )
             p_pgrm = p_sys->p_input->stream.p_selected_program;
         }
 
+        /* +11 -> avoid null value with non null dts/pts */
         if( p_block->i_dts > 0 && p_pgrm )
         {
             p_block->i_dts =
-                input_ClockGetTS( p_input, p_pgrm, p_block->i_dts * 9 / 100 );
+                input_ClockGetTS( p_input, p_pgrm, ( p_block->i_dts + 11 ) * 9 / 100 );
         }
         if( p_block->i_pts > 0 && p_pgrm )
         {
             p_block->i_pts =
-                input_ClockGetTS( p_input, p_pgrm, p_block->i_pts * 9 / 100 );
+                input_ClockGetTS( p_input, p_pgrm, ( p_block->i_pts + 11 )* 9 / 100 );
         }
     }