]> git.sesse.net Git - vlc/commitdiff
Tentative d'amelioration de la synchro.
authorChristophe Massiot <massiot@videolan.org>
Tue, 1 Feb 2000 00:13:07 +0000 (00:13 +0000)
committerChristophe Massiot <massiot@videolan.org>
Tue, 1 Feb 2000 00:13:07 +0000 (00:13 +0000)
src/video_parser/vpar_synchro.c

index 1f345b18b3ee17026d63110a68382ba15b1c5b34..e61f0c5704dec11d529417afa181fd6605a2c281 100644 (file)
@@ -440,7 +440,7 @@ boolean_t vpar_SynchroChoose( vpar_thread_t * p_vpar, int i_coding_type,
 void vpar_SynchroTrash( vpar_thread_t * p_vpar, int i_coding_type,
                         int i_structure )
 {
-    if (DECODER_FIFO_START(p_vpar->fifo)->b_has_pts)
+    if (DECODER_FIFO_START(p_vpar->fifo)->b_has_pts && i_coding_type == I_CODING_TYPE)
     {
         p_vpar->synchro.kludge_nbframes = 0;
         p_vpar->synchro.kludge_date = DECODER_FIFO_START(p_vpar->fifo)->i_pts;
@@ -453,7 +453,7 @@ void vpar_SynchroTrash( vpar_thread_t * p_vpar, int i_coding_type,
 void vpar_SynchroDecode( vpar_thread_t * p_vpar, int i_coding_type,
                             int i_structure )
 {
-    if (DECODER_FIFO_START(p_vpar->fifo)->b_has_pts)
+    if (DECODER_FIFO_START(p_vpar->fifo)->b_has_pts && i_coding_type == I_CODING_TYPE)
     {
         p_vpar->synchro.kludge_nbframes = 0;
         p_vpar->synchro.kludge_date = DECODER_FIFO_START(p_vpar->fifo)->i_pts;