From: Yunqing Wang Date: Fri, 18 Jul 2014 19:29:12 +0000 (-0700) Subject: Fix visual studio build failure X-Git-Tag: v1.4.0~1197 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=597ce31ff81e23129f5e76705634c4d5c9c72ef2;p=libvpx Fix visual studio build failure Cast frame_size to be int for now to fix build warnings. Change-Id: I411ba2b1fd429a383c8f6e832b4fa4147914c824 --- diff --git a/vpx_scale/generic/yv12config.c b/vpx_scale/generic/yv12config.c index e8003cea4..675d905ae 100644 --- a/vpx_scale/generic/yv12config.c +++ b/vpx_scale/generic/yv12config.c @@ -198,7 +198,7 @@ int vp9_realloc_frame_buffer(YV12_BUFFER_CONFIG *ybf, 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 @@ int vp9_realloc_frame_buffer(YV12_BUFFER_CONFIG *ybf, 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 +