shithub: libvpx

Download patch

ref: 8914ab696dbc30db6227596b063614d0689615ee
parent: 5fe0e55ca4f1c88b0d87448be4bafa4b700125ab
author: Marco <marpan@chromium.org>
date: Wed Jun 10 14:26:04 EDT 2015

Remove duplicate calls for set_frame_size in 1 pass mode.

set_frame_size() is being called twice, once before entering
encode_encode_frame_to_data_rate(), and once again in that function.
No need to call it twice for one-pass mode.

Change-Id: I5fabaf0a90482d4f42cd89ef7ae1402c31aec600

--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -4165,7 +4165,7 @@
           (is_two_pass_svc(cpi) &&
               cpi->svc.encode_empty_frame_state != ENCODING))) {
     vp9_rc_get_second_pass_params(cpi);
-  } else {
+  } else if (oxcf->pass == 1) {
     set_frame_size(cpi);
   }