vlc | branch: master | Francois Cartegnie <[email protected]> | Tue Sep 29 
20:27:21 2020 +0200| [53d539cf178f9e0e448b45ce49710046c9094ab9] | committer: 
Francois Cartegnie

demux: ogg: don't send negative pts

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

 modules/demux/ogg.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index 479aea9402..90edf1cb7e 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -1074,6 +1074,8 @@ static vlc_tick_t Ogg_FixupOutputQueue( demux_t *p_demux, 
logical_stream_t *p_st
             if( p_block->i_flags & BLOCK_FLAG_HEADER )
                 continue;
             p_block->i_dts = date_Get( &d );
+            if( p_block->i_dts < VLC_TICK_0 )
+                p_block->i_dts = VLC_TICK_0;
             date_Increment( &d, p_block->i_nb_samples );
         }
     } /* else can't do anything, no timestamped blocks in stream */

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to