ref: e2c6b05f9aefcea86f22c393217b05f123cecf07
parent: 61c5e31ca16cf35fe6bb9bd73c15c5526ff4b4e4
author: James Berry <jamesberry@google.com>
date: Mon Feb 27 09:41:43 EST 2012
bugfix: use oxcf width/height for reinit check use oxcf instead of common in check to Reinit the lookahead buffer if the frame size changes prior behavior would cause assertion fail/crash first observed in: support changing resolution with vpx_codec_enc_config_set Change-Id: Ib669916ca9b4f206d4cc3caab5107e49d39a36aa
--- a/vp8/encoder/onyx_if.c
+++ b/vp8/encoder/onyx_if.c
@@ -4575,7 +4575,7 @@
vpx_usec_timer_start(&timer);
/* Reinit the lookahead buffer if the frame size changes */
- if (sd->y_width != cpi->common.Width || sd->y_height != cpi->common.Height)
+ if (sd->y_width != cpi->oxcf.Width || sd->y_height != cpi->oxcf.Height)
{
assert(cpi->oxcf.lag_in_frames < 2);
dealloc_raw_frame_buffers(cpi);
--
⑨