Skip to content

Commit eefc4e6

Browse files
lu-zerobarrbrain
authored andcommitted
Rename twopass_init() to init_second_pass()
In line with the init_first_pass() call.
1 parent d93ca64 commit eefc4e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rate.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1363,7 +1363,7 @@ impl RCState {
13631363
}
13641364

13651365
// Initialize the rate control for second pass encoding
1366-
pub(crate) fn twopass_init(&mut self) {
1366+
pub(crate) fn init_second_pass(&mut self) {
13671367
if self.twopass_state == PASS_SINGLE || self.twopass_state == PASS_1 {
13681368
// Initialize the second pass.
13691369
self.twopass_state += PASS_2;
@@ -1606,7 +1606,7 @@ impl RCState {
16061606
&mut self, maybe_buf: Option<&[u8]>,
16071607
) -> Result<usize, ()> {
16081608
let mut consumed = 0;
1609-
self.twopass_init();
1609+
self.init_second_pass();
16101610
// If we haven't got a valid summary header yet, try to parse one.
16111611
if self.nframes_total[FRAME_SUBTYPE_I] == 0 {
16121612
self.pass2_data_ready = false;

0 commit comments

Comments
 (0)