[vlc-commits] demux: mp4: remove duplicated if branch

Alexandre Janniaux git at videolan.org
Mon Mar 22 14:54:31 UTC 2021


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Sat Mar 20 10:54:42 2021 +0100| [be3c563b570a7e114012b12ad9d3965cf6731ac5] | committer: Alexandre Janniaux

demux: mp4: remove duplicated if branch

This is exactly the same code as right above.

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

 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;



More information about the vlc-commits mailing list