[vlc-devel] [PATCH] codec/videotoolbox: Fix uninitialized pts in late start case

Marvin Scholz epirat07 at gmail.com
Sun Jul 28 13:13:19 CEST 2019


---
 modules/codec/videotoolbox.m | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index b01b5d4511..393d8247d4 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -1920,6 +1920,9 @@ static int DecodeBlock(decoder_t *p_dec, block_t *p_block)
         if (!p_block)
             return VLCDEC_SUCCESS;
     }
+    if (!p_sys->session /* Late Start */) {
+        PtsInit(p_dec);
+    }
 
     frame_info_t *p_info = CreateReorderInfo(p_dec, p_block);
     if(unlikely(!p_info))
-- 
2.19.1



More information about the vlc-devel mailing list