From: Marco Date: Thu, 20 Jul 2017 20:43:55 +0000 (-0700) Subject: vp8: Fix compile warning in vp8_multi_resolution_encoder.c X-Git-Tag: v1.7.0~293 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8c7a60e04d3b7e9f5189685cfa9701445aeac3fc;p=libvpx vp8: Fix compile warning in vp8_multi_resolution_encoder.c Change-Id: I49c960179dfc1902aa5e5c99915789878c06bc3d --- diff --git a/examples/vp8_multi_resolution_encoder.c b/examples/vp8_multi_resolution_encoder.c index 0b9663c77..4d79af6e0 100644 --- a/examples/vp8_multi_resolution_encoder.c +++ b/examples/vp8_multi_resolution_encoder.c @@ -469,7 +469,7 @@ int main(int argc, char **argv) { if (!vpx_img_alloc(&raw[i], VPX_IMG_FMT_I420, cfg[i].g_w, cfg[i].g_h, 32)) die("Failed to allocate image", cfg[i].g_w, cfg[i].g_h); - if (raw[0].stride[VPX_PLANE_Y] == raw[0].d_w) + if (raw[0].stride[VPX_PLANE_Y] == (int)raw[0].d_w) read_frame_p = read_frame; else read_frame_p = read_frame_by_row; @@ -558,7 +558,8 @@ int main(int argc, char **argv) { /* Write out down-sampled input. */ length_frame = cfg[i].g_w * cfg[i].g_h * 3 / 2; if (fwrite(raw[i].planes[0], 1, length_frame, - downsampled_input[NUM_ENCODERS - i - 1]) != length_frame) { + downsampled_input[NUM_ENCODERS - i - 1]) != + (unsigned int)length_frame) { return EXIT_FAILURE; } }