ref: 597ce31ff81e23129f5e76705634c4d5c9c72ef2
parent: 1094a11b57ce4a420ecbb2b4354daf6fe6783694
author: Yunqing Wang <yunqingwang@google.com>
date: Fri Jul 18 08:29:12 EDT 2014
Fix visual studio build failure Cast frame_size to be int for now to fix build warnings. Change-Id: I411ba2b1fd429a383c8f6e832b4fa4147914c824
--- a/vpx_scale/generic/yv12config.c
+++ b/vpx_scale/generic/yv12config.c
@@ -198,7 +198,7 @@
if (!ybf->buffer_alloc)
return -1;
- ybf->buffer_alloc_sz = frame_size;
+ ybf->buffer_alloc_sz = (int)frame_size;
// This memset is needed for fixing valgrind error from C loop filter
// due to access uninitialized memory in frame border. It could be
@@ -227,7 +227,7 @@
ybf->uv_stride = uv_stride;
ybf->border = border;
- ybf->frame_size = frame_size;
+ ybf->frame_size = (int)frame_size;
ybf->y_buffer = ybf->buffer_alloc + (border * y_stride) + border;
ybf->u_buffer = ybf->buffer_alloc + yplane_size +
--
⑨