From 87a2f50dc98a32e1a17e41b47c4ddaa0f200b965 Mon Sep 17 00:00:00 2001 From: Erik Zandvliet Date: Fri, 18 Apr 2014 11:21:35 +0200 Subject: [PATCH] Updated the buffer to reflect on non-video keyframes --- src/input/input_buffer.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/input/input_buffer.cpp b/src/input/input_buffer.cpp index a7b705ee..57a14639 100644 --- a/src/input/input_buffer.cpp +++ b/src/input/input_buffer.cpp @@ -228,14 +228,7 @@ namespace Mist { if (inputLoc[tNum][pageNum].firstTime == 0){ inputLoc[tNum][pageNum].firstTime = tmpPack.getTime(); } - //Overloaded use of .firstTime to indicate last Keytime on non-video streams; - if (myMeta.tracks[tNum].type == "video"){ - inputLoc[tNum][pageNum].keyNum += tmpPack.getFlag("keyframe"); - }else{ - if ((tmpPack.getTime() > 5000) && ((tmpPack.getTime() - 5000) > inputLoc[tNum][pageNum].firstTime)){ - inputLoc[tNum][pageNum].keyNum ++; - } - } + inputLoc[tNum][pageNum].keyNum += tmpPack.getFlag("keyframe"); inputLoc[tNum][pageNum].curOffset += tmpPack.getDataLen(); tmpPack.reInit(dataPages[tNum][pageNum].mapped + inputLoc[tNum][pageNum].curOffset, 0); }