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

This commit is contained in:
Paul Wilkins 2011-01-26 09:33:48 -08:00 committed by Code Review
commit e8e09d33df

View File

@ -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;
else
cpi->bits_off_target += cpi->av_per_frame_bandwidth - cpi->projected_frame_size;