]> granicus.if.org Git - libvpx/commitdiff
vp9: Update last_q for dropped frames
authorMarco Paniconi <marpan@google.com>
Mon, 6 Jul 2020 21:04:57 +0000 (14:04 -0700)
committerMarco Paniconi <marpan@google.com>
Mon, 6 Jul 2020 21:06:49 +0000 (14:06 -0700)
last_q is used in resize logic, should
always be last Q selected for previous
frame, encoded or dropped.

Change-Id: Ie9019ccf5a9e3acc8456a2e70cc2aa8d1c90236e

vp9/encoder/vp9_ratectrl.c

index 7301e80b846d0f4d171e9f5134fb61e05d1610e1..c8b3e0b29a29f8eca4397ad1a4250cc85cd4c2f4 100644 (file)
@@ -1986,6 +1986,7 @@ void vp9_rc_postencode_update_drop_frame(VP9_COMP *cpi) {
   cpi->rc.rc_2_frame = 0;
   cpi->rc.rc_1_frame = 0;
   cpi->rc.last_avg_frame_bandwidth = cpi->rc.avg_frame_bandwidth;
+  cpi->rc.last_q[INTER_FRAME] = cpi->common.base_qindex;
   // For SVC on dropped frame when framedrop_mode != LAYER_DROP:
   // in this mode the whole superframe may be dropped if only a single layer
   // has buffer underflow (below threshold). Since this can then lead to