]> granicus.if.org Git - libvpx/commitdiff
Fix two pass svc encoding
authorDebargha Mukherjee <debargha@google.com>
Tue, 15 Sep 2015 13:11:24 +0000 (06:11 -0700)
committerDebargha Mukherjee <debargha@google.com>
Tue, 15 Sep 2015 13:11:24 +0000 (06:11 -0700)
Fixes temporal scalability. Updates were inadvertently turned
off for two pass svc causing crashes due to gf_group.index
growing unchecked.

Change-Id: Iff759946bf61bbde70630347cc8fa4d51a8c2d2f

vp9/encoder/vp9_ratectrl.c

index 62ddc0a804fe4a72f81c91e5fcc5dde7238df7de..f7d0ac660ef662c0389514c8f877a1c644904799 100644 (file)
@@ -1354,7 +1354,7 @@ void vp9_rc_postencode_update(VP9_COMP *cpi, uint64_t bytes_used) {
 
   rc->total_target_vs_actual = rc->total_actual_bits - rc->total_target_bits;
 
-  if (!cpi->use_svc) {
+  if (!cpi->use_svc || is_two_pass_svc(cpi)) {
     if (is_altref_enabled(cpi) && cpi->refresh_alt_ref_frame &&
         (cm->frame_type != KEY_FRAME))
       // Update the alternate reference frame stats as appropriate.