[vlc-devel] [PATCH 2/2] demux: adaptive: buffering faster
    Zhao Zhili 
    quinkblack at foxmail.com
       
    Thu Jan 18 17:59:17 CET 2018
    
    
  
Assume a 60 FPS video, each call of demuxer->demux return one frame,
then the delay between each of demuxer->demux should not large than
16.7ms. A 50ms delay makes the buffering level around i_min_buffering.
---
 modules/demux/adaptive/PlaylistManager.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/adaptive/PlaylistManager.cpp b/modules/demux/adaptive/PlaylistManager.cpp
index 4663a48aeb..4aadbe896e 100644
--- a/modules/demux/adaptive/PlaylistManager.cpp
+++ b/modules/demux/adaptive/PlaylistManager.cpp
@@ -669,7 +669,7 @@ void PlaylistManager::Run()
         {
             mtime_t i_deadline = mdate();
             if(i_return == AbstractStream::buffering_ongoing)
-                i_deadline += (CLOCK_FREQ / 20);
+                i_deadline += (CLOCK_FREQ / 100);
             else if(i_return == AbstractStream::buffering_full)
                 i_deadline += (CLOCK_FREQ / 10);
             else if(i_return == AbstractStream::buffering_end)
-- 
2.14.3 (Apple Git-98)
    
    
More information about the vlc-devel
mailing list