shithub: libvpx

Download patch

ref: 2bf51c76e3a4d5dbbc70f5b9f72c55ce30e0f39f
parent: 68f2b4100dfbfedf7db80f784faf32a88cccb5d4
author: Marco <marpan@google.com>
date: Tue Mar 15 06:30:24 EDT 2016

vp9: Fix to scene cut/content change detection.

Use proper conditon on resolution check.

Change-Id: Idf563eb4391f373baf79546414a075b6516a5d35

--- a/vp9/encoder/vp9_ratectrl.c
+++ b/vp9/encoder/vp9_ratectrl.c
@@ -2006,8 +2006,8 @@
   RATE_CONTROL *const rc = &cpi->rc;
   rc->high_source_sad = 0;
   if (cpi->Last_Source != NULL &&
-      cpi->Last_Source->y_width == cm->width &&
-      cpi->Last_Source->y_height == cm->height) {
+      cpi->Last_Source->y_width == cpi->Source->y_width &&
+      cpi->Last_Source->y_height == cpi->Source->y_height) {
     const uint8_t *src_y = cpi->Source->y_buffer;
     const int src_ystride = cpi->Source->y_stride;
     const uint8_t *last_src_y = cpi->Last_Source->y_buffer;