[vlc-devel] [PATCH] demux: mp4: remove duplicated if branch

Alexandre Janniaux ajanni at videolabs.io
Sat Mar 20 10:41:28 UTC 2021


This is exactly the same code as right above.
---
 modules/demux/mp4/mp4.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index fe739f0893..4dac835a4d 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -2717,14 +2717,6 @@ static int TrackCreateSamplesIndex( demux_t *p_demux,
                     i_cts_shift = -ctts->pi_sample_offset[i];
             }
         }
-        else if( ctts->i_entry_count ) /* Compute for Quicktime */
-        {
-            for( uint32_t i = 0; i < ctts->i_entry_count; i++ )
-            {
-                if( ctts->pi_sample_offset[i] < 0 && ctts->pi_sample_offset[i] < -i_cts_shift )
-                    i_cts_shift = -ctts->pi_sample_offset[i];
-            }
-        }
 
         /* Create pts-dts table per chunk */
         uint32_t i_index = 0;
-- 
2.31.0



More information about the vlc-devel mailing list