[vlc-commits] Revert "packetizer: mpegaudio: flag discontinuity on timebase change"

Francois Cartegnie git at videolan.org
Thu Oct 27 13:11:29 CEST 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Oct 27 13:04:32 2016 +0200| [215b5ee4160b44d34f1a922d775ded9b8ece0155] | committer: Francois Cartegnie

Revert "packetizer: mpegaudio: flag discontinuity on timebase change"

This reverts commit ce02dd5c0defc8f15b93f8b6c6b986cfaadfa50e.

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

 modules/packetizer/mpegaudio.c | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)

diff --git a/modules/packetizer/mpegaudio.c b/modules/packetizer/mpegaudio.c
index 685a251..8716f17 100644
--- a/modules/packetizer/mpegaudio.c
+++ b/modules/packetizer/mpegaudio.c
@@ -344,18 +344,10 @@ static block_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
         case STATE_SYNC:
             /* New frame, set the Presentation Time Stamp */
             p_sys->i_pts = p_sys->bytestream.p_block->i_pts;
-            if( p_sys->i_pts > VLC_TS_INVALID )
+            if( p_sys->i_pts > VLC_TS_INVALID &&
+                p_sys->i_pts != date_Get( &p_sys->end_date ) )
             {
-                /* start or discontinuity */
-                if( date_Get( &p_sys->end_date ) == 0 )
-                {
-                    date_Set( &p_sys->end_date, p_sys->i_pts );
-                }
-                else if( date_Get( &p_sys->end_date ) != p_sys->i_pts )
-                {
-                    date_Set( &p_sys->end_date, p_sys->i_pts );
-                    p_sys->b_discontinuity = true;
-                }
+                date_Set( &p_sys->end_date, p_sys->i_pts );
             }
             p_sys->i_state = STATE_HEADER;
 



More information about the vlc-commits mailing list