ref: 238dae8604af11c484bdd8a9f5f17a07f29b4469
parent: 30e5deae5da1c8d6ad73a58d69f16c6d6330a6b9
author: John Koleszar <jkoleszar@google.com>
date: Wed Aug 3 12:12:12 EDT 2011
Fix source buffer selection This patch fixes a bug in the interaction between the recode loop and spatial resampling. If the codec was in a spatial resampling state, and a subsequent iteration of the recode loop disables resampling, then the source buffer must be reset to the unscaled source. Change-Id: I4e4cd47b943f6cd26a47449dc7f4255b38e27c77
--- a/vp8/encoder/onyx_if.c
+++ b/vp8/encoder/onyx_if.c
@@ -2594,6 +2594,8 @@
cpi->Source = &cpi->scaled_source;
#endif
}
+ else
+ cpi->Source = sd;
}
--
⑨