[vlc-devel] [PATCH] demux: adaptive: handle negative timestamps in FakeESOut

Zhao Zhili quinkblack at foxmail.com
Thu Aug 31 15:49:09 CEST 2017


---
  modules/demux/adaptive/plumbing/FakeESOut.cpp | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/adaptive/plumbing/FakeESOut.cpp 
b/modules/demux/adaptive/plumbing/FakeESOut.cpp
index 13348de..a1164cc 100644
--- a/modules/demux/adaptive/plumbing/FakeESOut.cpp
+++ b/modules/demux/adaptive/plumbing/FakeESOut.cpp
@@ -324,10 +324,10 @@ int FakeESOut::esOutSend_Callback(es_out_t 
*fakees, es_out_id_t *p_es, block_t *
      me->checkTimestampsStart( p_block->i_dts );

      mtime_t offset = me->getTimestampOffset();
-    if( p_block->i_dts > VLC_TS_INVALID )
+    if( p_block->i_dts != VLC_TS_INVALID )
      {
          p_block->i_dts += offset;
-        if( p_block->i_pts > VLC_TS_INVALID )
+        if( p_block->i_pts != VLC_TS_INVALID )
                  p_block->i_pts += offset;
      }
      AbstractCommand *command = 
me->commandsqueue->factory()->createEsOutSendCommand( es_id, p_block );
-- 
2.7.4

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-demux-adaptive-handle-negative-timestamps-in-FakeESO.patch
Type: text/x-patch
Size: 1165 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20170831/05b47311/attachment.bin>


More information about the vlc-devel mailing list