Merge "Minor fix on an assert"

This commit is contained in:
Deb Mukherjee 2014-01-14 13:57:17 -08:00 committed by Gerrit Code Review
commit fc43938d5e
2 changed files with 2 additions and 2 deletions

View File

@ -3420,7 +3420,7 @@ int vp9_get_compressed_data(VP9_PTR ptr, unsigned int *frame_flags,
#endif
frames_to_arf = cpi->rc.frames_till_gf_update_due;
assert(frames_to_arf < cpi->rc.frames_to_key);
assert(frames_to_arf <= cpi->rc.frames_to_key);
if ((cpi->source = vp9_lookahead_peek(cpi->lookahead, frames_to_arf))) {
#if CONFIG_MULTIPLE_ARF

View File

@ -965,5 +965,5 @@ void vp9_rc_postencode_update(VP9_COMP *cpi, uint64_t bytes_used) {
void vp9_rc_postencode_update_drop_frame(VP9_COMP *cpi) {
cpi->rc.frames_since_key++;
// cpi->rc.frames_to_key--;
cpi->rc.frames_to_key--;
}