Last active
May 22, 2019 20:49
-
-
Save dwbuiten/1665b69a2aeeaf25b0b86bc236f21ca7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/rate.rs b/src/rate.rs | |
index d2bee25..3ef4acf 100644 | |
--- a/src/rate.rs | |
+++ b/src/rate.rs | |
@@ -486,7 +486,7 @@ impl RCState { | |
// errors in the worst case. | |
// The 256 frame maximum means we'll require 8-10 seconds of pre-buffering | |
// at 24-30 fps, which is not unreasonable. | |
- let reservoir_frame_delay = clamp((max_key_frame_interval*3) >> 1, 12, 256); | |
+ let reservoir_frame_delay = max_key_frame_interval*3 >> 1; | |
// TODO: What are the limits on these? | |
let npixels = (frame_width as i64)*(frame_height as i64); | |
// Insane framerates or frame sizes mean insane bitrates. | |
@@ -519,7 +519,7 @@ impl RCState { | |
reservoir_frame_delay, | |
maybe_ac_qi_max, | |
// By default, enforce hard buffer constraints. | |
- drop_frames: true, | |
+ drop_frames: false, | |
cap_overflow: true, | |
cap_underflow: false, | |
// TODO: Support multiple passes. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment