Merge "Correction to buffer update for non-viewable frames."
diff --git a/vp8/encoder/onyx_if.c b/vp8/encoder/onyx_if.c
index 77cec73..7029cde 100644
--- a/vp8/encoder/onyx_if.c
+++ b/vp8/encoder/onyx_if.c
@@ -4618,7 +4618,8 @@
}
// Update the buffer level variable.
- if (cpi->common.refresh_alt_ref_frame)
+ // Non-viewable frames are a special case and are treated as pure overhead.
+ if ( !cm->show_frame )
cpi->bits_off_target -= cpi->projected_frame_size;
else
cpi->bits_off_target += cpi->av_per_frame_bandwidth - cpi->projected_frame_size;