ref: 0a9f56f14669442a164d445cef01c2a637e2c36c
parent: 5e908aff341e9c400f898b3d9c117e0eb63ef6fe
parent: e765435293a4aa88fe28fa67b17c581f385475a6
author: Marco Paniconi <marpan@google.com>
date: Fri Sep 30 17:43:33 EDT 2016
Merge "vp9: On change_config() only call update_frame_size if needed."
--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -1481,7 +1481,9 @@
}
}
- 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,