[vlc-commits] packetizer: mpeg4audio: flag discontinuity on timebase change

Francois Cartegnie git at videolan.org
Wed Oct 26 19:07:03 CEST 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Oct 25 13:20:39 2016 +0200| [ef6dd48f8ef753c87d445ec6853baf0b61b573ca] | committer: Francois Cartegnie

packetizer: mpeg4audio: flag discontinuity on timebase change

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

 modules/packetizer/mpeg4audio.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/modules/packetizer/mpeg4audio.c b/modules/packetizer/mpeg4audio.c
index ca58dcc..854caa4 100644
--- a/modules/packetizer/mpeg4audio.c
+++ b/modules/packetizer/mpeg4audio.c
@@ -1029,8 +1029,12 @@ static block_t *PacketizeStreamBlock(decoder_t *p_dec, block_t **pp_block)
         /* 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 &&
-                p_sys->i_pts != date_Get(&p_sys->end_date))
+            p_sys->i_pts != date_Get(&p_sys->end_date))
+        {
+            if(date_Get(&p_sys->end_date) != 0)
+                p_sys->b_discontuinity = true;
             date_Set(&p_sys->end_date, p_sys->i_pts);
+        }
         p_sys->i_state = STATE_HEADER;
         break;
 



More information about the vlc-commits mailing list