Merge "vp9: On change_config() only call update_frame_size if needed."

This commit is contained in:
Marco Paniconi 2016-09-30 21:43:33 +00:00 committed by Gerrit Code Review
commit 0a9f56f146

View File

@ -1481,7 +1481,9 @@ void vp9_change_config(struct VP9_COMP *cpi, const VP9EncoderConfig *oxcf) {
}
}
update_frame_size(cpi);
if (cm->current_video_frame == 0 || last_w != cpi->oxcf.width ||
last_h != cpi->oxcf.height)
update_frame_size(cpi);
if (last_w != cpi->oxcf.width || last_h != cpi->oxcf.height) {
memset(cpi->consec_zero_mv, 0,