ref: 6f23d405821477ed857fd9cda3cdac6068aee490
parent: c664f16182cb3e4f650fadb2ca0e996f2d546a8c
parent: c4367b9b51782969d3b37ead6694d19ef9bfb58c
author: James Zern <[email protected]>
date: Wed Mar 18 15:39:48 EDT 2015
Merge "vp9_resize_plane: quiet some static analysis warnings"
--- a/vp9/encoder/vp9_resize.c
+++ b/vp9/encoder/vp9_resize.c
@@ -516,6 +516,10 @@
uint8_t *tmpbuf = (uint8_t *)malloc(sizeof(uint8_t) *
(width < height ? height : width));
uint8_t *arrbuf = (uint8_t *)malloc(sizeof(uint8_t) * (height + height2));
+ assert(width > 0);
+ assert(height > 0);
+ assert(width2 > 0);
+ assert(height2 > 0);
for (i = 0; i < height; ++i)
resize_multistep(input + in_stride * i, width,
intbuf + width2 * i, width2, tmpbuf);