Commit a3f71ccf authored by Paul Wilkins's avatar Paul Wilkins
Browse files

Correction to buffer update for non-viewable frames.

The code previously tested cpi->common.refresh_alt_ref_frame
but there are situations where this flag may be set for viewable frames.

The correct test should be !cm->show_frame.

Change-Id: Ia1a600622992a4a68fe1d38ac23bf6b34b133688
parent 2caa36aa
......@@ -4614,7 +4614,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;
Supports Markdown
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