[vlc-commits] packetizer: mpegvideo: fix prev dts check

Francois Cartegnie git at videolan.org
Wed Feb 12 15:05:28 CET 2020


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Feb 12 14:49:21 2020 +0100| [894f6463d22c02488121e7b4362882b227240af3] | committer: Francois Cartegnie

packetizer: mpegvideo: fix prev dts check

spurious timestamps resets and breaks captions reordering
ref dd1f506f409ab14ab579f08e077fd0fcd53ee1d4

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

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

diff --git a/modules/packetizer/mpegvideo.c b/modules/packetizer/mpegvideo.c
index f6f55624d1..2388cc5488 100644
--- a/modules/packetizer/mpegvideo.c
+++ b/modules/packetizer/mpegvideo.c
@@ -999,7 +999,7 @@ static block_t *ParseMPEGBlock( decoder_t *p_dec, block_t *p_frag )
 
         /* Check if we can use timestamps */
         if(p_frag->i_dts != VLC_TICK_INVALID &&
-           p_frag->i_dts <= date_Get(&p_sys->dts))
+           p_frag->i_dts <= p_sys->i_dts)
         {
             date_t next = p_sys->dts;
             date_Set(&next, p_frag->i_dts);



More information about the vlc-commits mailing list