diff --git a/vp8/encoder/onyx_if.c b/vp8/encoder/onyx_if.c
index 1082245d3fd435a4a1841ac072088868cc9f6aec..6645442319ebb94b84b6ccbab26f18b46b298e08 100644
--- a/vp8/encoder/onyx_if.c
+++ b/vp8/encoder/onyx_if.c
@@ -4575,7 +4575,7 @@ int vp8_receive_raw_frame(VP8_COMP *cpi, unsigned int frame_flags, YV12_BUFFER_C
     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);