[vlc-commits] mux: ps: fix INT64_MAX used as a vlc_tick_t value

Steve Lhomme git at videolan.org
Thu Aug 13 14:07:57 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Aug 13 06:39:28 2020 +0200| [0e9c5de258f641fc97579a13bde34c3a3abb664e] | committer: Steve Lhomme

mux: ps: fix INT64_MAX used as a vlc_tick_t value

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

 modules/mux/mpeg/ps.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/mux/mpeg/ps.c b/modules/mux/mpeg/ps.c
index 7f8f8a2c20..86d33b2e8f 100644
--- a/modules/mux/mpeg/ps.c
+++ b/modules/mux/mpeg/ps.c
@@ -484,7 +484,7 @@ static int Mux( sout_mux_t *p_mux )
                     i_mindts = p_s->i_dts;
             }
 
-            if( i_mindts > p_sys->i_instant_dts )
+            if( i_mindts != INT64_MAX && i_mindts > p_sys->i_instant_dts )
             {
                 /* Update the instant bitrate every second or so */
                 if( p_sys->i_instant_size &&



More information about the vlc-commits mailing list