Originally committed to SVN as r121.

This commit is contained in:
Rodrigo Braz Monteiro 2006-02-23 02:02:03 +00:00
parent 2216528544
commit 57b6834d13
1 changed files with 4 additions and 2 deletions

View File

@ -147,8 +147,10 @@ void MatroskaWrapper::Parse() {
// Read frames
int frameN = 0;
while (mkv_ReadFrame(file,0,&rt,&startTime,&endTime,&filePos,&frameSize,&frameFlags) == 0) {
frames.push_back(MkvFrame((frameFlags & FRAME_KF) != 0,double(startTime) / timecodeScale));
frameN++;
if (!(frameFlags & FRAME_GAP)) {
frames.push_back(MkvFrame((frameFlags & FRAME_KF) != 0,double(startTime) / timecodeScale));
frameN++;
}
}
break;