Fixed Ogg output Opus support

This commit is contained in:
Thulinma 2017-05-13 23:04:42 +02:00
parent 41842227fa
commit b072ffb139
2 changed files with 13 additions and 6 deletions

View file

@ -492,6 +492,8 @@ namespace OGG {
tempGranule = (currentSegment.lastKeyFrameSeen << split) | currentSegment.framesSinceKeyFrame;
} else if (codec == OGG::VORBIS){
tempGranule = currentSegment.lastKeyFrameSeen;
} else if (codec == OGG::OPUS){
tempGranule = currentSegment.timeStamp*48;
}
return tempGranule;
}