Commit e8e09d33 authored by Paul Wilkins's avatar Paul Wilkins Committed by Code Review

Merge "Correction to buffer update for non-viewable frames."

parents 82266a1a a3f71ccf
......@@ -4618,7 +4618,8 @@ static void encode_frame_to_data_rate
// 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;
cpi->bits_off_target += cpi->av_per_frame_bandwidth - cpi->projected_frame_size;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment