Support fractional fps
This commit is contained in:
parent
f5cd68c8a2
commit
1fe1b5ba61
@ -58,7 +58,7 @@ module.exports = (_options = {}) => {
|
||||
readFrames = true;
|
||||
}
|
||||
} else if (readFrames && message.startsWith(' Stream')) {
|
||||
const match = message.match(/(\d+) fps/);
|
||||
const match = message.match(/([\d\.]+) fps/);
|
||||
if (match) {
|
||||
const fps = parseFloat(match[1]);
|
||||
frames = duration * fps;
|
||||
|
Loading…
Reference in New Issue
Block a user