Verified Commit badacdbb authored by Chocobozzz's avatar Chocobozzz
Browse files

Merge branch 'release/3.4.0' into develop

parents e5d9877f 41085b15
Pipeline #450514 passed with stage
in 12 minutes and 49 seconds
......@@ -101,7 +101,7 @@ class MuxingSession extends EventEmitter {
this.fps = options.fps
this.bitrate = options.bitrate
this.ratio = options.bitrate
this.ratio = options.ratio
this.allResolutions = options.allResolutions
......
......@@ -237,5 +237,8 @@ export {
function capBitrate (inputBitrate: number, targetBitrate: number) {
if (!inputBitrate) return targetBitrate
return Math.min(targetBitrate, inputBitrate)
// Add 30% margin to input bitrate
const inputBitrateWithMargin = inputBitrate + (inputBitrate * 0.3)
return Math.min(targetBitrate, inputBitrateWithMargin)
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment