[vlc-commits] demux: flac: don't send invalid PCR on broken packet

Francois Cartegnie git at videolan.org
Mon Apr 27 20:32:41 CEST 2020


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Apr 27 19:25:09 2020 +0200| [122f2ceb911515059f8eb4431414a5349e3ee0d8] | committer: Francois Cartegnie

demux: flac: don't send invalid PCR on broken packet

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

 modules/demux/flac.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/demux/flac.c b/modules/demux/flac.c
index d63495577c..ab029554c8 100644
--- a/modules/demux/flac.c
+++ b/modules/demux/flac.c
@@ -393,7 +393,8 @@ static int Demux( demux_t *p_demux )
             if( unlikely(p_sys->i_pts == VLC_TICK_INVALID) )
                 es_out_SetPCR( p_demux->out, __MAX(p_block_out->i_dts - 1, VLC_TICK_0) );
 
-            p_sys->i_pts = p_block_out->i_dts;
+            if(p_block_out->i_dts != VLC_TICK_INVALID)
+                p_sys->i_pts = p_block_out->i_dts;
 
             es_out_Send( p_demux->out, p_sys->p_es, p_block_out );
 



More information about the vlc-commits mailing list