vp8 fix: re-allocate denoiser for spatial resize.

Change has been committed upstream, see:
https://gerrit.chromium.org/gerrit/#/c/71097/
https://gerrit.chromium.org/gerrit/#/c/71121/

BUG=http://code.google.com/p/chromium/issues/detail?id=392112
R=johannkoenig@google.com
TBR=tomfinegan@chromium.org

Review URL: https://codereview.chromium.org/452933006

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/libvpx@288801 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
diff --git a/source/libvpx/vp8/encoder/onyx_if.c b/source/libvpx/vp8/encoder/onyx_if.c
index 12e5011..8658da0 100644
--- a/source/libvpx/vp8/encoder/onyx_if.c
+++ b/source/libvpx/vp8/encoder/onyx_if.c
@@ -1259,6 +1259,14 @@
 
     vpx_free(cpi->tplist);
     CHECK_MEM_ERROR(cpi->tplist, vpx_malloc(sizeof(TOKENLIST) * cm->mb_rows));
+
+#if CONFIG_TEMPORAL_DENOISING
+    if (cpi->oxcf.noise_sensitivity > 0) {
+      vp8_denoiser_free(&cpi->denoiser);
+      vp8_denoiser_allocate(&cpi->denoiser, width, height,
+                            cm->mb_rows, cm->mb_cols);
+    }
+#endif
 }