ref: d1f8dd518c5cea6525c5891ef4034ee2752cb171
parent: 44b29a769c92e553cc4abce8a8a4bb75b874ec63
parent: 18303b1263170e33369a2925b191844ea0ff0b05
author: John Koleszar <[email protected]>
date: Wed Jul 10 07:04:40 EDT 2013
Merge "Fix intermediate height in convolve"
--- a/vp9/common/vp9_convolve.c
+++ b/vp9/common/vp9_convolve.c
@@ -217,12 +217,13 @@
* h == 64, taps == 8.
*/
uint8_t temp[64 * 135];
- int intermediate_height = ((h * y_step_q4) >> 4) + taps - 1;
+ int intermediate_height = MAX(((h * y_step_q4) >> 4), 1) + taps - 1;
assert(w <= 64);
assert(h <= 64);
assert(taps <= 8);
assert(y_step_q4 <= 32);
+ assert(x_step_q4 <= 32);
if (intermediate_height < h)
intermediate_height = h;
@@ -246,12 +247,13 @@
* h == 64, taps == 8.
*/
uint8_t temp[64 * 135];
- int intermediate_height = ((h * y_step_q4) >> 4) + taps - 1;
+ int intermediate_height = MAX(((h * y_step_q4) >> 4), 1) + taps - 1;
assert(w <= 64);
assert(h <= 64);
assert(taps <= 8);
assert(y_step_q4 <= 32);
+ assert(x_step_q4 <= 32);
if (intermediate_height < h)
intermediate_height = h;