[vlc-commits] packetizer:mpeg4video: a "null" dts is a VLC_TICK_INVALID

Steve Lhomme git at videolan.org
Tue Sep 18 15:56:04 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jun 13 11:31:17 2018 +0200| [5d22faf056a811bcb7eb81cb33d39b04b65feb16] | committer: Steve Lhomme

packetizer:mpeg4video: a "null" dts is a VLC_TICK_INVALID

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

 modules/packetizer/mpeg4video.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/packetizer/mpeg4video.c b/modules/packetizer/mpeg4video.c
index a79fbb625f..4877071381 100644
--- a/modules/packetizer/mpeg4video.c
+++ b/modules/packetizer/mpeg4video.c
@@ -258,7 +258,7 @@ static int PacketizeValidate( void *p_private, block_t *p_au )
 
     /* When starting the stream we can have the first frame with
      * a null DTS (i_interpolated_pts is initialized to 0) */
-    if( !p_au->i_dts )
+    if( p_au->i_dts == VLC_TICK_INVALID )
         p_au->i_dts = p_au->i_pts;
     return VLC_SUCCESS;
 }



More information about the vlc-commits mailing list